Merge remote-tracking branch 'upstream/develop' into develop

This commit is contained in:
Chris Berthe
2012-06-18 12:38:59 -04:00
9 changed files with 22 additions and 7 deletions

View File

@@ -327,7 +327,7 @@ class Has_Many_And_Belongs_To extends Relationship {
foreach ($parents as &$parent)
{
$matching = array_filter($children, function($v) use ($parent, $foreign)
$matching = array_filter($children, function($v) use (&$parent, $foreign)
{
return $v->pivot->$foreign == $parent->get_key();
});