Skip to content

[5.6] Serialize relationships - #21229

Merged
taylorotwell merged 4 commits into
laravel:masterfrom
browner12:serialize-relationships
Sep 21, 2017
Merged

[5.6] Serialize relationships#21229
taylorotwell merged 4 commits into
laravel:masterfrom
browner12:serialize-relationships

Conversation

@browner12

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

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

@taylorotwell

Copy link
Copy Markdown
Member

Added a test for that.

@taylorotwell
taylorotwell merged commit 98ee9ba into laravel:master Sep 21, 2017
@browner12

browner12 commented Sep 21, 2017

Copy link
Copy Markdown
Contributor Author

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.

3 participants