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

Queue jobs with SerializesModels fail when eloquent collections are deserialized #29525

Closed
Brenneisen opened this issue Aug 12, 2019 · 1 comment
Labels

Comments

@Brenneisen
Copy link
Contributor

  • Laravel Version: 5.8.29
  • PHP Version: 7.3.7
  • Database Driver & Version: MySQL 8.0

Description:

After #29136 the deserialization of eloquent collections fails if elements are deleted in the meantime.

Steps To Reproduce:

$event = new Event(User::all());

$serialized = serialize($event);

User::find(1)->delete();

unserialize($serialized); // It breaks with Undefined offset: 1
@driesvints
Copy link
Member

PR was merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants