1 | <?php |
||
25 | class DocumentManager extends BaseDocumentManager |
||
26 | { |
||
27 | /** |
||
28 | * Repository factory. |
||
29 | * |
||
30 | * @var RepositoryFactory |
||
31 | */ |
||
32 | protected $repositoryFactory; |
||
33 | |||
34 | /** |
||
35 | * Default repository class name. |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $repositoryClassName = 'Doctrine\ODM\CouchDB\DocumentRepository'; |
||
40 | |||
41 | /** |
||
42 | * Get repository factory. |
||
43 | * |
||
44 | * @return DefaultRepositoryFactory |
||
45 | */ |
||
46 | public function getRepositoryFactory() |
||
54 | |||
55 | /** |
||
56 | * Set repository factory. |
||
57 | * |
||
58 | * @param RepositoryFactory $repositoryFactory |
||
59 | */ |
||
60 | public function setRepositoryFactory(RepositoryFactory $repositoryFactory) |
||
64 | |||
65 | /** |
||
66 | * Get default repository class name. |
||
67 | * |
||
68 | * @return string |
||
69 | */ |
||
70 | public function getDefaultRepositoryClassName() |
||
74 | |||
75 | /** |
||
76 | * Set default repository class name. |
||
77 | * |
||
78 | * @param string $className |
||
79 | * |
||
80 | * @throws \InvalidArgumentException |
||
81 | */ |
||
82 | public function setDefaultRepositoryClassName($className) |
||
95 | |||
96 | /** |
||
97 | * Gets the repository for a class. |
||
98 | * |
||
99 | * @param string $documentName |
||
100 | * |
||
101 | * @return \Doctrine\ODM\CouchDB\DocumentRepository |
||
102 | */ |
||
103 | public function getRepository($documentName) |
||
107 | |||
108 | /** |
||
109 | * {@inheritdoc} |
||
110 | */ |
||
111 | public static function create($couchParams, Configuration $config = null, EventManager $evm = null) |
||
125 | } |
||
126 |