1 | <?php |
||
28 | class DocumentQueryRepository extends QueryRepository |
||
29 | { |
||
30 | /** |
||
31 | * @var MongoDBDocumentRepository |
||
32 | */ |
||
33 | protected $repository; |
||
34 | |||
35 | /** |
||
36 | * @var DocumentDataSourceFactoryInterface |
||
37 | */ |
||
38 | protected $documentDataSourceFactory; |
||
39 | |||
40 | /** |
||
41 | * @var DocumentDataSource |
||
42 | */ |
||
43 | private $documentDataSource = null; |
||
44 | |||
45 | /** |
||
46 | * @param MongoDBDocumentRepository $repository |
||
47 | * @param DocumentDataSourceFactoryInterface $documentDataSourceFactory |
||
48 | */ |
||
49 | public function __construct( |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function clear() |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function isEmpty() |
||
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | public function toArray() |
||
87 | |||
88 | /** |
||
89 | * {@inheritdoc} |
||
90 | */ |
||
91 | public function getIterator() |
||
95 | |||
96 | /** |
||
97 | * {@inheritdoc} |
||
98 | */ |
||
99 | public function sorted(ComparatorInterface $criteria) |
||
103 | |||
104 | /** |
||
105 | * {@inheritdoc} |
||
106 | */ |
||
107 | public function slice($offset, $length = null) |
||
118 | |||
119 | /** |
||
120 | * {@inheritdoc} |
||
121 | */ |
||
122 | public function find(SpecificationInterface $criteria) |
||
126 | |||
127 | /** |
||
128 | * {@inheritdoc} |
||
129 | */ |
||
130 | public function findOne(SpecificationInterface $criteria) |
||
134 | |||
135 | /** |
||
136 | * {@inheritdoc} |
||
137 | */ |
||
138 | public function get(IdInterface $id) |
||
142 | |||
143 | /** |
||
144 | * {@inheritdoc} |
||
145 | */ |
||
146 | public function persist($element) |
||
153 | |||
154 | /** |
||
155 | * {@inheritdoc} |
||
156 | */ |
||
157 | public function persistAll($elements) |
||
166 | |||
167 | /** |
||
168 | * {@inheritdoc} |
||
169 | */ |
||
170 | public function remove($element) |
||
177 | |||
178 | /** |
||
179 | * {@inheritdoc} |
||
180 | */ |
||
181 | public function count() |
||
185 | |||
186 | /** |
||
187 | * @return \Doctrine\ODM\MongoDB\DocumentManager |
||
188 | */ |
||
189 | protected function dm() |
||
193 | |||
194 | /** |
||
195 | * @return \Cubiche\Infrastructure\Repository\Doctrine\ODM\MongoDB\DocumentDataSource |
||
196 | */ |
||
197 | protected function documentDataSource() |
||
205 | } |
||
206 |