1 | <?php |
||
23 | class DocumentRepository extends Repository |
||
24 | { |
||
25 | /** |
||
26 | * @var MongoDBDocumentRepository |
||
27 | */ |
||
28 | protected $repository; |
||
29 | |||
30 | /** |
||
31 | * @param MongoDBDocumentRepository $repository |
||
32 | */ |
||
33 | public function __construct(MongoDBDocumentRepository $repository) |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function get(IdInterface $id) |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function persist($element) |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function persistAll($elements) |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function remove($element) |
||
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | */ |
||
86 | public function getIterator() |
||
90 | |||
91 | /** |
||
92 | * @return \Doctrine\ODM\MongoDB\DocumentManager |
||
93 | */ |
||
94 | protected function dm() |
||
98 | } |
||
99 |