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