use array_values on relationship matches.
This commit is contained in:
parent
b8b0c08495
commit
9cee86ffb9
|
@ -98,7 +98,7 @@ public function match($relationship, &$parents, $children)
|
|||
return $v->$foreign == $parent->get_key();
|
||||
});
|
||||
|
||||
$parent->relationships[$relationship] = $matching;
|
||||
$parent->relationships[$relationship] = array_values($matching);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -332,7 +332,7 @@ public function match($relationship, &$parents, $children)
|
|||
return $v->pivot->$foreign == $parent->get_key();
|
||||
});
|
||||
|
||||
$parent->relationships[$relationship] = $matching;
|
||||
$parent->relationships[$relationship] = array_values($matching);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue