abstract class AbstractPersistentCollectionFactory implements PersistentCollectionFactory (View source)

Abstract factory for creating persistent collection classes.

Methods

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

Creates specified persistent collection to work with given collection class.

Collection
createCollectionClass(string $collectionClass)

Creates instance of collection class to be wrapped by PersistentCollection.

Details

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

Creates specified persistent collection to work with given collection class.

Parameters

DocumentManager $dm
array $mapping
Collection|null $coll

abstract protected Collection createCollectionClass(string $collectionClass)

Creates instance of collection class to be wrapped by PersistentCollection.

Parameters

string $collectionClass FQCN of class to instantiate

Return Value

Collection