#6613 #6614 #6616 ensuring that the collection is marked as non-dirty if all new items are contained in the initialized ones
This commit is contained in:
parent
abb429a0c9
commit
15731c7bde
@ -719,6 +719,6 @@ final class PersistentCollection extends AbstractLazyCollection implements Selec
|
|||||||
// Reattach NEW objects added through add(), if any.
|
// Reattach NEW objects added through add(), if any.
|
||||||
array_walk($newObjectsThatWereNotLoaded, [$this->collection, 'add']);
|
array_walk($newObjectsThatWereNotLoaded, [$this->collection, 'add']);
|
||||||
|
|
||||||
$this->isDirty = true;
|
$this->isDirty = (bool) $newObjectsThatWereNotLoaded;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user