lib/Doctrine/ORM/Mapping/ClassMetadata.php
public function validateLifecycleCallbacks(ReflectionService $reflectionService) : void
    {
        foreach ($this->lifecycleCallbacks as $callbacks) {
            /** @var array $callbacks */
            foreach ($callbacks as $callbackFuncName) {
                if (! $reflectionService->hasPublicMethod($this->className, $callbackFuncName)) {
                    throw MappingException::lifecycleCallbackMethodNotFound($this->className, $callbackFuncName);
                }
            }
        }
    }
public function validateLifecycleCallbacks(ReflectionService $reflectionService) : void
    {
        foreach ($this->lifecycleCallbacks as $callbacks) {
            /** @var array $callbacks */
            foreach ($callbacks as $callbackFuncName) {
                if (! $reflectionService->hasPublicMethod($this->className, $callbackFuncName)) {
                    throw MappingException::lifecycleCallbackMethodNotFound($this->className, $callbackFuncName);
                }
            }
        }
    }
public function validateLifecycleCallbacks ( ReflectionService $ reflectionService ) : void { foreach ( $ this -> lifecycleCallbacks as $ callbacks ) { /** @var array $callbacks */ foreach ( $ callbacks as $ callbackFuncName ) { if ( ! $ reflectionService -> hasPublicMethod ( $ this -> className , $ callbackFuncName ) ) { throw MappingException :: lifecycleCallbackMethodNotFound ( $ this -> className , $ callbackFuncName ) ; } } } }
Validates lifecycle callbacks.

@throws MappingException
Validates lifecycle callbacks .