Skip to content

Commit 3f6779f

Browse files
committed
Merge pull request doctrine#430 from ludofleury/configuration-namespaces
Add getDocumentNamespaces method to the Configuration
2 parents dc8c322 + 9521288 commit 3f6779f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/Doctrine/ODM/MongoDB/Configuration.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ public function getDocumentNamespace($documentNamespaceAlias)
6666
return trim($this->attributes['documentNamespaces'][$documentNamespaceAlias], '\\');
6767
}
6868

69+
/**
70+
* Retrieves the list of registered document namespace aliases.
71+
*
72+
* @return array
73+
*/
74+
public function getDocumentNamespaces()
75+
{
76+
return $this->attributes['documentNamespaces'];
77+
}
78+
6979
/**
7080
* Set the document alias map
7181
*

0 commit comments

Comments
 (0)