@@ 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 | } |
@@ 1282-1285 (lines=4) @@ | ||
1279 | continue; |
|
1280 | } |
|
1281 | ||
1282 | if ( ! empty($entryClass->lifecycleCallbacks[Events::preUpdate])) { |
|
1283 | $entryClass->invokeLifecycleCallbacks(Events::preUpdate, $entry); |
|
1284 | $this->recomputeSingleDocumentChangeSet($entryClass, $entry); |
|
1285 | } |
|
1286 | if ($hasPreUpdateListeners) { |
|
1287 | $this->evm->dispatchEvent(Events::preUpdate, new Event\PreUpdateEventArgs( |
|
1288 | $entry, $this->dm, $this->documentChangeSets[$entryOid]) |