[2.0] Fixed dirty state of lazy-initialized collection with new elements prior to initialization.
This commit is contained in:
parent
ba496fd3ad
commit
7db2f9abd9
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user