1
0
mirror of synced 2024-12-13 22:56:04 +03:00

add doc for default repository class

This commit is contained in:
Fabio B. Silva 2011-12-20 09:15:37 -02:00
parent e29dfabb74
commit ca87ddd540

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