Commit eca9f79d authored by meus's avatar meus

removed array_unique in Hydrate/Record and added test to run.php fixes #403

parent 2865efcd
...@@ -108,7 +108,7 @@ class Doctrine_Hydrate_Record extends Doctrine_Object ...@@ -108,7 +108,7 @@ class Doctrine_Hydrate_Record extends Doctrine_Object
public function flush() public function flush()
{ {
// take snapshots from all initialized collections // take snapshots from all initialized collections
foreach (array_unique($this->_collections) as $key => $coll) { foreach ($this->_collections as $key => $coll) {
$coll->takeSnapshot(); $coll->takeSnapshot();
} }
foreach ($this->_tables as $table) { foreach ($this->_tables as $table) {
......
...@@ -176,6 +176,8 @@ $test->addTestCase(new Doctrine_Relation_TestCase()); ...@@ -176,6 +176,8 @@ $test->addTestCase(new Doctrine_Relation_TestCase());
//$test->addTestCase(new Doctrine_Relation_Access_TestCase()); //$test->addTestCase(new Doctrine_Relation_Access_TestCase());
//$test->addTestCase(new Doctrine_Relation_ManyToMany_TestCase()); //$test->addTestCase(new Doctrine_Relation_ManyToMany_TestCase());
$test->addTestCase(new Doctrine_Relation_ManyToMany2_TestCase());
$test->addTestCase(new Doctrine_Relation_OneToMany_TestCase()); $test->addTestCase(new Doctrine_Relation_OneToMany_TestCase());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment