1 | <?php |
||
8 | final class ORMTransaction implements Transaction |
||
9 | { |
||
10 | /** |
||
11 | * @var EntityManagerInterface |
||
12 | */ |
||
13 | private $entityManager; |
||
14 | |||
15 | /** |
||
16 | * @param EntityManagerInterface $entityManager |
||
17 | */ |
||
18 | public function __construct(EntityManagerInterface $entityManager) |
||
23 | |||
24 | /** |
||
25 | * @return void |
||
26 | */ |
||
27 | public function commit() |
||
32 | |||
33 | /** |
||
34 | * @return void |
||
35 | */ |
||
36 | public function rollback() |
||
40 | |||
41 | /** |
||
42 | * @param mixed $entity |
||
43 | * @return boolean |
||
44 | */ |
||
45 | public function contains($entity) |
||
49 | |||
50 | /** |
||
51 | * @param mixed $entity |
||
52 | */ |
||
53 | public function persist($entity) |
||
57 | |||
58 | /** |
||
59 | * @param mixed $entity |
||
60 | */ |
||
61 | public function delete($entity) |
||
65 | } |
||
66 |