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.3] Add nullable morph columns #16879

Merged
merged 1 commit into from
Dec 20, 2016
Merged

[5.3] Add nullable morph columns #16879

merged 1 commit into from
Dec 20, 2016

Conversation

antonkomarev
Copy link
Contributor

@antonkomarev antonkomarev commented Dec 20, 2016

This will be very helpful for the case when model has owned_by polymorpic relation which could be null if owner not set\exists. For example comments could be written by guests and by authenticated users. Or author of an article can be deleted from system, but content will be published still.

Using it in Laravel Ownership package.

@GrahamCampbell GrahamCampbell changed the title Add nullable morph columns [5.3] Add nullable morph columns Dec 20, 2016
@taylorotwell taylorotwell merged commit 7790c83 into laravel:5.3 Dec 20, 2016
@antonkomarev antonkomarev deleted the feature/nullable-morphs branch December 20, 2016 16:01
@tillkruss
Copy link
Collaborator

@a-komarev: Docs for this would be really nice 🙂

@antonkomarev
Copy link
Contributor Author

@tillkruss laravel/docs#2927 Is it enough?

@tillkruss
Copy link
Collaborator

👍

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

3 participants