Skip to content
Browse files

[DataFixtures] [Loader] Pass current connection to associate objects

  • Loading branch information...
1 parent b54cf4a commit f675e3982e4f9e45d7a312bef5d837c970b0f1de @willdurand willdurand committed May 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 DataFixtures/Loader/AbstractDataLoader.php
View
2 DataFixtures/Loader/AbstractDataLoader.php
@@ -261,7 +261,7 @@ protected function loadManyToMany($obj, $middleTableName, $values)
$middle = new $middleClass();
$middle->$setter($obj);
$middle->$relatedSetter($this->object_references[$relatedClass.'_'.$value]);
- $middle->save();
+ $middle->save($this->con);
}
}
}

0 comments on commit f675e39

Please sign in to comment.
Something went wrong with that request. Please try again.