| @@ 433-436 (lines=4) @@ | ||
| 430 | { |
|
| 431 | $metadata = $this->dm->getClassMetadata(get_class($document)); |
|
| 432 | // Invoke preLoad lifecycle events and listeners |
|
| 433 | if ( ! empty($metadata->lifecycleCallbacks[Events::preLoad])) { |
|
| 434 | $args = array(&$data); |
|
| 435 | $metadata->invokeLifecycleCallbacks(Events::preLoad, $document, $args); |
|
| 436 | } |
|
| 437 | if ($this->evm->hasListeners(Events::preLoad)) { |
|
| 438 | $this->evm->dispatchEvent(Events::preLoad, new PreLoadEventArgs($document, $this->dm, $data)); |
|
| 439 | } |
|
| @@ 1272-1275 (lines=4) @@ | ||
| 1269 | continue; |
|
| 1270 | } |
|
| 1271 | ||
| 1272 | if ( ! empty($entryClass->lifecycleCallbacks[Events::preUpdate])) { |
|
| 1273 | $entryClass->invokeLifecycleCallbacks(Events::preUpdate, $entry); |
|
| 1274 | $this->recomputeSingleDocumentChangeSet($entryClass, $entry); |
|
| 1275 | } |
|
| 1276 | if ($hasPreUpdateListeners) { |
|
| 1277 | $this->evm->dispatchEvent(Events::preUpdate, new Event\PreUpdateEventArgs( |
|
| 1278 | $entry, $this->dm, $this->documentChangeSets[$entryOid]) |
|