1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Merge pull request #66 from FabioBatSilva/patch-2

add doc for default repository class
This commit is contained in:
Guilherme Blanco 2011-12-20 08:34:27 -08:00
commit 041a4e0b43

View File

@ -495,3 +495,17 @@ correctly if sub-namespaces use different metadata driver
implementations.
Default Repository (***OPTIONAL***)
-------------------------
Specifies the FQCN of a subclass of the EntityRepository.
That will be available for all entities without a custom repository class.
.. code-block:: php
<?php
$config->setDefaultRepositoryClassName($fqcn);
$config->getDefaultRepositoryClassName();
The default value is ``Doctrine\ORM\EntityRepository``.
Any repository class must be a subclass of EntityRepository otherwise you got an ORMException