1
0
mirror of synced 2025-03-06 21:06:16 +03:00

#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:
Marco Pivetta 2017-08-11 21:09:34 +02:00
parent 1174ec6e8a
commit a2ca6bbfaf
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -727,6 +727,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;
} }
} }