[2.0] Fixed dirty state of lazy-initialized collection with new elements prior to initialization.
This commit is contained in:
parent
ba496fd3ad
commit
7db2f9abd9
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue