| @@ 439-441 (lines=3) @@ | ||
| 436 | $args = array(new PreLoadEventArgs($document, $this->dm, $data)); |
|
| 437 | $metadata->invokeLifecycleCallbacks(Events::preLoad, $document, $args); |
|
| 438 | } |
|
| 439 | if ($this->evm->hasListeners(Events::preLoad)) { |
|
| 440 | $this->evm->dispatchEvent(Events::preLoad, new PreLoadEventArgs($document, $this->dm, $data)); |
|
| 441 | } |
|
| 442 | ||
| 443 | // alsoLoadMethods may transform the document before hydration |
|
| 444 | if ( ! empty($metadata->alsoLoadMethods)) { |
|
| @@ 474-476 (lines=3) @@ | ||
| 471 | if ( ! empty($metadata->lifecycleCallbacks[Events::postLoad])) { |
|
| 472 | $metadata->invokeLifecycleCallbacks(Events::postLoad, $document, array(new LifecycleEventArgs($document, $this->dm))); |
|
| 473 | } |
|
| 474 | if ($this->evm->hasListeners(Events::postLoad)) { |
|
| 475 | $this->evm->dispatchEvent(Events::postLoad, new LifecycleEventArgs($document, $this->dm)); |
|
| 476 | } |
|
| 477 | ||
| 478 | return $data; |
|
| 479 | } |
|
| @@ 188-191 (lines=4) @@ | ||
| 185 | ||
| 186 | $class->setParentClasses($nonSuperclassParents); |
|
| 187 | ||
| 188 | if ($this->evm->hasListeners(Events::loadClassMetadata)) { |
|
| 189 | $eventArgs = new LoadClassMetadataEventArgs($class, $this->dm); |
|
| 190 | $this->evm->dispatchEvent(Events::loadClassMetadata, $eventArgs); |
|
| 191 | } |
|
| 192 | } |
|
| 193 | ||
| 194 | /** |
|
| @@ 2335-2337 (lines=3) @@ | ||
| 2332 | } |
|
| 2333 | } |
|
| 2334 | ||
| 2335 | if ($this->evm->hasListeners(Events::onClear)) { |
|
| 2336 | $this->evm->dispatchEvent(Events::onClear, new Event\OnClearEventArgs($this->dm, $documentName)); |
|
| 2337 | } |
|
| 2338 | } |
|
| 2339 | ||
| 2340 | /** |
|