1 | <?php |
||
21 | class EntityEventResolver implements EventResolverInterface |
||
22 | { |
||
23 | protected $eventShortName; |
||
24 | |||
25 | /** @var $event DoctrineEntityEvent */ |
||
26 | protected $event; |
||
27 | |||
28 | protected $entity; |
||
29 | |||
30 | protected $eventName; |
||
31 | |||
32 | protected $identity = ['', '']; |
||
33 | |||
34 | /** |
||
35 | * @var Registry |
||
36 | */ |
||
37 | protected $doctrine; |
||
38 | |||
39 | |||
40 | /** |
||
41 | * @param Event|DoctrineEntityEvent $event |
||
42 | * @param $eventName |
||
43 | * |
||
44 | * @return array |
||
45 | * @throws \ReflectionException |
||
46 | */ |
||
47 | public function getEventLogInfo(Event $event, $eventName) |
||
67 | |||
68 | protected function getSingleIdentity() |
||
77 | |||
78 | /** |
||
79 | * @param DoctrineEntityEvent $event |
||
80 | * @param string $eventName |
||
81 | */ |
||
82 | private function initialize(DoctrineEntityEvent $event, $eventName) |
||
90 | |||
91 | private function getIdField() |
||
95 | |||
96 | private function getIdValue() |
||
100 | |||
101 | protected function getChangeSets($entity) |
||
105 | |||
106 | protected function isUpdateEvent() |
||
110 | |||
111 | |||
112 | /** |
||
113 | * @param string $typeName |
||
114 | * @return string |
||
115 | */ |
||
116 | protected function getEventType($typeName) |
||
120 | |||
121 | /** |
||
122 | * @param string $shortName |
||
123 | * @return string |
||
124 | */ |
||
125 | protected function getDescription($shortName) |
||
135 | |||
136 | /** |
||
137 | * @return string |
||
138 | */ |
||
139 | protected function getEventShortName() |
||
147 | |||
148 | /** |
||
149 | * @return string |
||
150 | */ |
||
151 | protected function getName() |
||
155 | |||
156 | /** |
||
157 | * @param $object |
||
158 | * @return \ReflectionClass |
||
159 | * @throws \ReflectionException |
||
160 | */ |
||
161 | protected function getReflectionClassFromObject($object) |
||
165 | |||
166 | /** |
||
167 | * @return \Doctrine\ORM\UnitOfWork |
||
168 | */ |
||
169 | protected function getUnitOfWork() |
||
173 | |||
174 | /** |
||
175 | * @return \Doctrine\Bundle\DoctrineBundle\Registry|object |
||
176 | */ |
||
177 | protected function getDoctrine() |
||
181 | |||
182 | /** |
||
183 | * @param Registry $doctrine |
||
184 | */ |
||
185 | public function setDoctrine($doctrine) |
||
189 | } |
||
190 |