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 64
__construct(DocumentManager $dm, PersistenceBuilder $pb, UnitOfWork $uow)
Constructs a new CollectionPersister instance.
at line 77
delete(PersistentCollectionInterface $coll, array $options)
Deletes a PersistentCollection instance completely from a document using $unset.