Skip to content

Commit

Permalink
fixes an issue where delayed jobs in L5.5 fail to run in L5.6 due to …
Browse files Browse the repository at this point in the history
…the new relations traits introduced in 230eeef (#23287)
  • Loading branch information
vicgonvt authored and taylorotwell committed Feb 25, 2018
1 parent 5d6eb7d commit 2d1364d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function restoreModel($value)
{
return $this->getQueryForModelRestoration(
(new $value->class)->setConnection($value->connection), $value->id
)->useWritePdo()->firstOrFail()->load($value->relations);
)->useWritePdo()->firstOrFail()->load($value->relations ?? []);
}

/**
Expand Down

0 comments on commit 2d1364d

Please sign in to comment.