1
0
mirror of synced 2025-02-20 22:23:14 +03:00

[2.0] Fixed dirty state of lazy-initialized collection with new elements prior to initialization.

This commit is contained in:
romanb 2009-11-19 13:29:55 +00:00
parent ba496fd3ad
commit 7db2f9abd9

View File

@ -241,6 +241,7 @@ final class PersistentCollection implements \Doctrine\Common\Collections\Collect
foreach ($newObjects as $obj) {
$this->_coll->add($obj);
}
$this->_isDirty = true;
}
$this->_initialized = true;
}