Skip to content

Commit 88a1600

Browse files
committed
Fix wakeup for pivot relationships
1 parent 1d7fafc commit 88a1600

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Illuminate/Database/Eloquent/Model.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,10 +1408,12 @@ public function getQueueableRelations()
14081408
$relations = [];
14091409

14101410
foreach ($this->getRelations() as $key => $relation) {
1411-
if (method_exists($this, $key)) {
1412-
$relations[] = $key;
1411+
if (! method_exists($this, $key)) {
1412+
continue;
14131413
}
14141414

1415+
$relations[] = $key;
1416+
14151417
if ($relation instanceof QueueableCollection) {
14161418
foreach ($relation->getQueueableRelations() as $collectionValue) {
14171419
$relations[] = $key.'.'.$collectionValue;

0 commit comments

Comments
 (0)