1
0
mirror of synced 2025-02-09 00:39:25 +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 abb429a0c9
commit 15731c7bde
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -719,6 +719,6 @@ final class PersistentCollection extends AbstractLazyCollection implements Selec
// Reattach NEW objects added through add(), if any.
array_walk($newObjectsThatWereNotLoaded, [$this->collection, 'add']);
$this->isDirty = true;
$this->isDirty = (bool) $newObjectsThatWereNotLoaded;
}
}