interface PersistentCollectionFactory (View source)

Interface for persistent collection classes factory.

Methods

create(DocumentManager $dm, array $mapping, Collection $coll = null)

Creates specified persistent collection to work with given collection class.

Details

PersistentCollectionInterface create(DocumentManager $dm, array $mapping, Collection $coll = null)

Creates specified persistent collection to work with given collection class.

Parameters

DocumentManager $dm DocumentManager with which collection is associated
array $mapping Mapping of field holding collection
Collection $coll Collection to be decorated

Return Value

PersistentCollectionInterface