1 | <?php |
||
21 | class DoctrineObjectEventResolver implements EventResolverInterface |
||
22 | { |
||
23 | protected $eventShortName; |
||
24 | |||
25 | /** @var $event DoctrineObjectEvent */ |
||
26 | protected $event; |
||
27 | |||
28 | protected $entity; |
||
29 | |||
30 | protected $eventName; |
||
31 | |||
32 | protected $identity = ['', '']; |
||
33 | |||
34 | /** |
||
35 | * @var ManagerRegistry |
||
36 | */ |
||
37 | protected $doctrine; |
||
38 | |||
39 | protected $changeSetGetterMethods = [ |
||
40 | 'getEntityChangeSet', |
||
41 | 'getDocumentChangeSet', |
||
42 | ]; |
||
43 | |||
44 | /** |
||
45 | * @param Event|DoctrineObjectEvent $event |
||
46 | * @param $eventName |
||
47 | * |
||
48 | * @return array |
||
49 | * |
||
50 | * @throws \ReflectionException |
||
51 | */ |
||
52 | public function getEventLogInfo(Event $event, $eventName) |
||
71 | |||
72 | protected function getSingleIdentity() |
||
80 | |||
81 | /** |
||
82 | * @param DoctrineObjectEvent $event |
||
83 | * @param string $eventName |
||
84 | */ |
||
85 | private function initialize(DoctrineObjectEvent $event, $eventName) |
||
93 | |||
94 | private function getIdField() |
||
98 | |||
99 | private function getIdValue() |
||
103 | |||
104 | protected function getChangeSets($entity) |
||
116 | |||
117 | protected function isUpdateEvent() |
||
121 | |||
122 | /** |
||
123 | * @param string $typeName |
||
124 | * |
||
125 | * @return string |
||
126 | */ |
||
127 | protected function getEventType($typeName) |
||
131 | |||
132 | /** |
||
133 | * @param string $shortName |
||
134 | * |
||
135 | * @return string |
||
136 | */ |
||
137 | protected function getDescription($shortName) |
||
147 | |||
148 | /** |
||
149 | * @return string |
||
150 | */ |
||
151 | protected function getEventShortName() |
||
159 | |||
160 | /** |
||
161 | * @return string |
||
162 | */ |
||
163 | protected function getName() |
||
167 | |||
168 | /** |
||
169 | * @param $object |
||
170 | * |
||
171 | * @return \ReflectionClass |
||
172 | * |
||
173 | * @throws \ReflectionException |
||
174 | */ |
||
175 | protected function getReflectionClassFromObject($object) |
||
179 | |||
180 | /** |
||
181 | * @return \Doctrine\ODM\MongoDB\UnitOfWork|\Doctrine\ORM\UnitOfWork |
||
182 | */ |
||
183 | protected function getUnitOfWork() |
||
187 | |||
188 | /** |
||
189 | * @return ManagerRegistry|object |
||
190 | */ |
||
191 | protected function getDoctrine() |
||
195 | |||
196 | /** |
||
197 | * @param ManagerRegistry $doctrine |
||
198 | */ |
||
199 | public function setDoctrine($doctrine) |
||
203 | } |
||
204 |