1 | <?php |
||
14 | class DoctrineListener |
||
15 | { |
||
16 | /** |
||
17 | * @var Keeper |
||
18 | */ |
||
19 | protected $keeper; |
||
20 | |||
21 | /** |
||
22 | * @var bool |
||
23 | */ |
||
24 | protected $track_individually_entity; |
||
25 | |||
26 | /** |
||
27 | * @param Keeper $keeper |
||
28 | * @param bool $track_individually_entity |
||
29 | */ |
||
30 | 21 | public function __construct(Keeper $keeper, $track_individually_entity) |
|
35 | |||
36 | /** |
||
37 | * @param LifecycleEventArgs $args |
||
38 | */ |
||
39 | 7 | public function postPersist(LifecycleEventArgs $args) |
|
43 | |||
44 | /** |
||
45 | * @param LifecycleEventArgs $args |
||
46 | */ |
||
47 | 7 | public function postRemove(LifecycleEventArgs $args) |
|
51 | |||
52 | /** |
||
53 | * @param LifecycleEventArgs $args |
||
54 | */ |
||
55 | 7 | public function postUpdate(LifecycleEventArgs $args) |
|
59 | |||
60 | /** |
||
61 | * @param LifecycleEventArgs $args |
||
62 | * @param bool $remove |
||
63 | */ |
||
64 | 21 | protected function update(LifecycleEventArgs $args, $remove) |
|
77 | |||
78 | /** |
||
79 | * @param LifecycleEventArgs $args |
||
80 | * |
||
81 | * @return string |
||
82 | */ |
||
83 | 21 | protected function getEntityAlias(LifecycleEventArgs $args) |
|
95 | |||
96 | /** |
||
97 | * @param LifecycleEventArgs $args |
||
98 | * |
||
99 | * @return string |
||
100 | */ |
||
101 | 12 | protected function getEntityIdentifier(LifecycleEventArgs $args) |
|
109 | } |
||
110 |