1 | <?php |
||
10 | class AbstractManager implements ManagerInterface |
||
11 | { |
||
12 | protected $objectManager; |
||
13 | |||
14 | protected $class; |
||
15 | |||
16 | /** |
||
17 | * @var RestRepository |
||
18 | */ |
||
19 | protected $repository; |
||
20 | |||
21 | 10 | public function __construct(EntityManagerInterface $objectManager, $class) |
|
29 | |||
30 | 3 | public function find($id) |
|
34 | |||
35 | 1 | public function findAll() |
|
39 | |||
40 | 1 | public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) |
|
44 | |||
45 | 1 | public function findOneBy(array $criteria) |
|
49 | |||
50 | 1 | public function getClassName() |
|
54 | |||
55 | 1 | public function merge($object, $flush = false) |
|
65 | |||
66 | 1 | public function persist($object, $flush = false) |
|
74 | |||
75 | 1 | public function remove($object, $flush = false) |
|
83 | |||
84 | 4 | public function getEntityManager() |
|
88 | |||
89 | 8 | public function getRepository() |
|
93 | |||
94 | 3 | public function create() |
|
100 | |||
101 | 1 | public function createList($alias, $idAlias, $hydrationMode = Query::HYDRATE_OBJECT) |
|
111 | |||
112 | 1 | public function getListQuery(array $sortConfiguration, $sortQuery) |
|
116 | } |
||
117 |