class DefaultRepositoryFactory implements RepositoryFactory (View source)

This factory is used to create default repository objects for entities at runtime.

Methods

ObjectRepository
getRepository(DocumentManagerInterface $dm, string $documentName)

Gets the repository for a document class.

ObjectRepository
createRepository(DocumentManagerInterface $dm, string $documentName)

Create a new repository instance for a document class.

Details

ObjectRepository getRepository(DocumentManagerInterface $dm, string $documentName)

Gets the repository for a document class.

Parameters

DocumentManagerInterface $dm The DocumentManager instance.
string $documentName The name of the document.

Return Value

ObjectRepository

protected ObjectRepository createRepository(DocumentManagerInterface $dm, string $documentName)

Create a new repository instance for a document class.

Parameters

DocumentManagerInterface $dm The DocumentManager instance.
string $documentName The name of the document.

Return Value

ObjectRepository