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

[5.6] Serialize relationships #21229

Merged
merged 4 commits into from
Sep 21, 2017
Merged

[5.6] Serialize relationships #21229

merged 4 commits into from
Sep 21, 2017

Conversation

browner12
Copy link
Contributor

resubmission of #21191 to master branch due to breaking changes.

- add new `getQueueableRelations` method to queuable interfaces
- accept the 'relations' into the `ModelIdentifier`
- implement `getQueueableRelations` method on Eloquent Collection and Model.
- extract a method on `SerializesAndRestoresModelIdentifiers` for `restoreModel`. Load the relationships in this method.
- add test
@GrahamCampbell GrahamCampbell changed the title Serialize relationships [5.6] Serialize relationships Sep 18, 2017
@taylorotwell
Copy link
Member

I was able to completely comment out the following code with no tests failures, indicating it is not tested currently:

screen shot 2017-09-21 at 9 32 12 am

@browner12
Copy link
Contributor Author

well then... i'll take another stab at that 😑

@taylorotwell
Copy link
Member

Added a test for that.

@taylorotwell taylorotwell merged commit 98ee9ba into laravel:master Sep 21, 2017
@browner12
Copy link
Contributor Author

browner12 commented Sep 21, 2017

thanks @taylorotwell

now the question is, is there any way we can bring this to 5.5?

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.

None yet

3 participants