-
Notifications
You must be signed in to change notification settings - Fork 11.6k
[12.x] Adds EagerLoad attribute and initializeOnQueue hook
#55590
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
base: 12.x
Are you sure you want to change the base?
Conversation
|
Thanks for submitting a PR! Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface. Pull requests that are abandoned in draft may be closed due to inactivity. |
WithRelations attribute
|
I'm sure you're already on it, but the class name is still |
WithRelations attributeLoadRelations attribute
LoadRelations attributeLoadRelations and initilizer hooks on on the queue
LoadRelations and initilizer hooks on on the queueEagerLoad attribute and initializeOnQueue hook
| } | ||
| } | ||
|
|
||
| if (in_array(Queueable::class, class_uses_recursive($this)) && method_exists($this, 'initializeOnQueue')) { |
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.
I feel like swapping the order would be more optimal, but probably not by much:
if (method_exists($this, 'initializeOnQueue') && in_array(Queueable::class, class_uses_recursive($this))) {Probably would only be important if this was called a lot.
No description provided.