interface RepositoryFactory (View source)

Interface for document repository factory.

Methods

ObjectRepository
getRepository(DocumentManagerInterface $dm, string $documentName)

Gets the repository 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