@@ 435-437 (lines=3) @@ | ||
432 | $args = array(new PreLoadEventArgs($document, $this->dm, $data)); |
|
433 | $metadata->invokeLifecycleCallbacks(Events::preLoad, $document, $args); |
|
434 | } |
|
435 | if ($this->evm->hasListeners(Events::preLoad)) { |
|
436 | $this->evm->dispatchEvent(Events::preLoad, new PreLoadEventArgs($document, $this->dm, $data)); |
|
437 | } |
|
438 | ||
439 | // alsoLoadMethods may transform the document before hydration |
|
440 | if ( ! empty($metadata->alsoLoadMethods)) { |
|
@@ 470-472 (lines=3) @@ | ||
467 | if ( ! empty($metadata->lifecycleCallbacks[Events::postLoad])) { |
|
468 | $metadata->invokeLifecycleCallbacks(Events::postLoad, $document, array(new LifecycleEventArgs($document, $this->dm))); |
|
469 | } |
|
470 | if ($this->evm->hasListeners(Events::postLoad)) { |
|
471 | $this->evm->dispatchEvent(Events::postLoad, new LifecycleEventArgs($document, $this->dm)); |
|
472 | } |
|
473 | ||
474 | return $data; |
|
475 | } |
@@ 185-188 (lines=4) @@ | ||
182 | ||
183 | $class->setParentClasses($nonSuperclassParents); |
|
184 | ||
185 | if ($this->evm->hasListeners(Events::loadClassMetadata)) { |
|
186 | $eventArgs = new LoadClassMetadataEventArgs($class, $this->dm); |
|
187 | $this->evm->dispatchEvent(Events::loadClassMetadata, $eventArgs); |
|
188 | } |
|
189 | } |
|
190 | ||
191 | /** |
@@ 2313-2315 (lines=3) @@ | ||
2310 | } |
|
2311 | } |
|
2312 | ||
2313 | if ($this->evm->hasListeners(Events::onClear)) { |
|
2314 | $this->evm->dispatchEvent(Events::onClear, new Event\OnClearEventArgs($this->dm, $documentName)); |
|
2315 | } |
|
2316 | } |
|
2317 | ||
2318 | /** |