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.5] Model serialization on custom connection #19521

Merged
merged 3 commits into from
Jun 8, 2017
Merged

[5.5] Model serialization on custom connection #19521

merged 3 commits into from
Jun 8, 2017

Conversation

themsaid
Copy link
Member

@themsaid themsaid commented Jun 7, 2017

Currently while we retrieve model instances from ModelIdentifier after unserialization we use the default connection, so currently if you have a queued job that has reference to models on a non-default connection the ModelIdentifier will try to bring models from the default connection causing wrong behaviour.

This PR adds a reference to the connection used inside ModelIdentifier to help retrieving models from the right connection in the future.

@taylorotwell taylorotwell merged commit e1e8c14 into laravel:master Jun 8, 2017
@taylorotwell
Copy link
Member

Thanks

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.

2 participants