class CollectionPersister (View source)
The CollectionPersister is responsible for persisting collections of embedded or referenced documents. When a PersistentCollection is scheduledForDeletion in the UnitOfWork by calling PersistentCollection::clear() or is de-referenced in the domain application code, CollectionPersister::delete() will be called. When documents within the PersistentCollection are added or removed, CollectionPersister::update() will be called, which may set the entire collection or delete/insert individual elements, depending on the mapping strategy.
at line 52
delete(PersistentCollectionInterface $coll, array $options)
Deletes a PersistentCollection instance completely from a document using $unset.