From 19dfe7b891efc3a6f6e2c7aafa2e04f74b6d37af Mon Sep 17 00:00:00 2001 From: Guilherme Blanco Date: Fri, 6 May 2011 01:41:34 -0300 Subject: [PATCH] Added method to allow retrieve all registered entity namespace aliases. --- lib/Doctrine/ORM/Configuration.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/Doctrine/ORM/Configuration.php b/lib/Doctrine/ORM/Configuration.php index 0bc206d27..999d0c84c 100644 --- a/lib/Doctrine/ORM/Configuration.php +++ b/lib/Doctrine/ORM/Configuration.php @@ -163,6 +163,16 @@ class Configuration extends \Doctrine\DBAL\Configuration { $this->_attributes['entityNamespaces'] = $entityNamespaces; } + + /** + * Retrieves the list of registered entity namespace aliases. + * + * @return array + */ + public function getEntityNamespaces() + { + return $this->_attributes['entityNamespaces']; + } /** * Gets the cache driver implementation that is used for the mapping metadata.