Skip to content

Conversation

@JosephSilber
Copy link
Contributor

Use the model's hydrate method in the builder's getModels method, since they both do essentially the same thing.

This also simplifies the hydrate and hydrateRaw methods on the Model class.

@JosephSilber JosephSilber changed the title Use model@hydrate in builder@getModels [5.0] Use model@hydrate in builder@getModels Jan 21, 2015
@JosephSilber JosephSilber force-pushed the model-hydrate branch 4 times, most recently from baa8266 to a54a84a Compare January 23, 2015 14:45
@taylorotwell
Copy link
Member

Conflicts?

@JosephSilber
Copy link
Contributor Author

@taylorotwell rebased.

@JosephSilber
Copy link
Contributor Author

@taylorotwell rebased again.

@JosephSilber
Copy link
Contributor Author

Sigh... rebased again.

@taylorotwell Third time's a charm?

Copy link
Collaborator

Choose a reason for hiding this comment

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

string|null

Copy link
Contributor Author

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 :)

Copy link
Collaborator

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.

Copy link
Contributor Author

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 ?

Copy link
Collaborator

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. :)

@GrahamCampbell
Copy link
Collaborator

👍

@GrahamCampbell
Copy link
Collaborator

@JosephSilber Yeh, please do resend this to 5.0. :)

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.

3 participants