Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: Git Master
-
Fix Version/s: 2.0.7
-
Component/s: None
-
Security Level: All
-
Labels:None
Description
If clear() is called on an uninitialized PersistentCollection it needs to set the collection to be initialized.
An example of where this can cause problems:
- Call clear() on an uninitialized collection
- Check if an entity is in that collection using contains($entity)
This can return a false positive if the entity was previously in the collection.
Fixed.