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

Make hasOne and morphOne nullable. #864

Merged
merged 1 commit into from
Mar 31, 2020
Merged

Conversation

leo108
Copy link
Contributor

@leo108 leo108 commented Jan 1, 2020

No description provided.

Copy link
Collaborator

@mfn mfn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me.

I believe this also applies to HasOneThrough, can you check?

Would also be great if you sync with master and adapt the tests in \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Relations\Test::test also add the HasOneThrough relation for the test to \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Relations\Models\Simple

@mr-feek
Copy link
Contributor

mr-feek commented Feb 11, 2020

Thank you 🙌 HasOne should be nullable indeed

@mfn
Copy link
Collaborator

mfn commented Mar 10, 2020

Ran into this today in fact 😅 @leo108 are you still interesting in completing this from my feedback?

@leo108
Copy link
Contributor Author

leo108 commented Mar 11, 2020

@mfn sorry for the delay, I'll fix this ASAP

@leo108
Copy link
Contributor Author

leo108 commented Mar 11, 2020

@mfn Fixed, please check.

Copy link
Collaborator

@mfn mfn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adapting the tests 🙇

LGTM and also tested it with a project of mine 👍

ping @barryvdh

@leo108
Copy link
Contributor Author

leo108 commented Mar 30, 2020

@barryvdh Can you merge this?

@barryvdh barryvdh merged commit 18588ea into barryvdh:master Mar 31, 2020
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.

4 participants