use array_values on relationship matches.

This commit is contained in:
Taylor Otwell 2012-04-24 22:38:30 -05:00
parent b8b0c08495
commit 9cee86ffb9
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ public function match($relationship, &$parents, $children)
return $v->$foreign == $parent->get_key(); return $v->$foreign == $parent->get_key();
}); });
$parent->relationships[$relationship] = $matching; $parent->relationships[$relationship] = array_values($matching);
} }
} }

View File

@ -332,7 +332,7 @@ public function match($relationship, &$parents, $children)
return $v->pivot->$foreign == $parent->get_key(); return $v->pivot->$foreign == $parent->get_key();
}); });
$parent->relationships[$relationship] = $matching; $parent->relationships[$relationship] = array_values($matching);
} }
} }