-
Notifications
You must be signed in to change notification settings - Fork 11.7k
[5.0] Use model@hydrate in builder@getModels #7081
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
Conversation
baa8266 to
a54a84a
Compare
|
Conflicts? |
a54a84a to
fe3aeaa
Compare
|
@taylorotwell rebased. |
fe3aeaa to
fd213f2
Compare
|
@taylorotwell rebased again. |
fd213f2 to
a4cec71
Compare
|
Sigh... rebased again. @taylorotwell Third time's a charm? |
a4cec71 to
b7b7775
Compare
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.
string|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.
@GrahamCampbell It's not like that throughout the codebase, but... heck if that makes you happy :)
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.
It's not like that throughout the codebase
Yeh, I know. There's no point wasting time enforcing it everywhere, as with the short array syntax. We're just making sure new code is correct. Changing all the existing code is a total waste of time.
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.
Changing all the existing code is a total waste of time.
Wow! Who are you, and what have you done to @GrahamCampbell ?
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.
Lol. I just can't see the real benefit to going through ensuring all old docblocks have a |null in them where they should have one. Time is precious, and should be used to it's maximum potential. :)
b7b7775 to
5165d44
Compare
|
👍 |
|
@JosephSilber Yeh, please do resend this to 5.0. :) |
Use the model's
hydratemethod in the builder'sgetModelsmethod, since they both do essentially the same thing.This also simplifies the
hydrateandhydrateRawmethods on theModelclass.