-
Notifications
You must be signed in to change notification settings - Fork 11k
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.0] Fix empty morph to relationship #8586
Conversation
*/ | ||
public function getResults() | ||
{ | ||
if ( ! $this->otherKey) return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just return;
please
[5.0] Fix empty morph to relationship
It doesn't work for me (5.0)
even when I set the morph fields to null, still it causes a |
I'd need to see some more of your code to help you... Also that part |
Thanks for your willingness to help. I think it should work with empty strings too, because the Anyway as I said I tried it with null morph columns too, but this doesn't work for me. I have the following methods in my
when the
|
This fixes issue #8499