From ca87ddd540dcd6e61ba6a61ab8d99c4f8c13ec00 Mon Sep 17 00:00:00 2001 From: "Fabio B. Silva" Date: Tue, 20 Dec 2011 09:15:37 -0200 Subject: [PATCH] add doc for default repository class --- en/reference/configuration.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/en/reference/configuration.rst b/en/reference/configuration.rst index 178ff9bb4..57534ab32 100644 --- a/en/reference/configuration.rst +++ b/en/reference/configuration.rst @@ -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 + + 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 \ No newline at end of file