public function postLoad(LifecycleEventArgs $args)
    {
        $object = $args->getObject();
        if(get_class($object) === $this->targetClass) {
            $this->loadEntity($object);
        }
    }
public function postLoad(LifecycleEventArgs $args)
    {
        $object = $args->getObject();
        if(get_class($object) === $this->targetClass) {
            $this->loadEntity($object);
        }
    }
public function postLoad ( LifecycleEventArgs $ args ) { $ object = $ args -> getObject ( ) ; if ( get_class ( $ object ) === $ this -> targetClass ) { $ this -> loadEntity ( $ object ) ; } }
Insert target class on load

@param $args LifecycleEventArgs
Insert target class on load