1 | <?php |
||
16 | class Manager implements ManagerInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var SmartManagerRegistry |
||
20 | */ |
||
21 | protected $doctrine; |
||
22 | |||
23 | /** |
||
24 | * @var PropertyAccessorInterface |
||
25 | */ |
||
26 | protected $propertyAccessor; |
||
27 | |||
28 | /** |
||
29 | * @param SmartManagerRegistry $doctrine |
||
30 | * @param PropertyAccessorInterface $propertyAccessor |
||
31 | */ |
||
32 | public function __construct(SmartManagerRegistry $doctrine, PropertyAccessorInterface $propertyAccessor) |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function create($entityClass, array $defaultValues = array(), array $options = array()) |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function find($entityClass, $id, array $options = array()) |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function save($entity, array $options = array()) |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | public function remove($entity) |
||
78 | |||
79 | /** |
||
80 | * Returns the manager for an entity |
||
81 | * |
||
82 | * @param object|string $entity |
||
83 | * |
||
84 | * @return \Doctrine\Common\Persistence\ObjectManager |
||
85 | */ |
||
86 | protected function getManager($entity) |
||
92 | } |
||
93 |