Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.6] Allow setting custom morphTo ownerKey #21310

Merged
merged 1 commit into from
Sep 21, 2017
Merged

[5.6] Allow setting custom morphTo ownerKey #21310

merged 1 commit into from
Sep 21, 2017

Conversation

v0ctor
Copy link
Contributor

@v0ctor v0ctor commented Sep 21, 2017

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.

None yet

2 participants