Skip to content

[5.6] Allow setting custom morphTo ownerKey - #21310

Merged
taylorotwell merged 1 commit into
laravel:masterfrom
v0ctor:custom-morphto-ownerkey
Sep 21, 2017
Merged

taylorotwell merged 1 commit into
laravel:masterfrom
v0ctor:custom-morphto-ownerkey

Conversation

@v0ctor

@v0ctor v0ctor commented Sep 21, 2017 •

Copy link
Copy Markdown
Contributor

Resubmission of #21235 due to breaking changes. This PR implements the proposal laravel/ideas#587 by adding the ability to set a custom ownerKey when defining a morphTo relationship.

I haven't added any tests because DatabaseEloquentMorphToTest fits the use case. Correct me if I'm wrong.

In case someone finds it unsuitable, I would highly appreciate your help. Keep in mind that this is my first PR here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants