public function countErrorsForProcess(LifecycleEventArgs $event)
    {
        $entityManager = $event->getEntityManager();
        $repository    = $entityManager->getRepository(get_class($this));

        $repository->countByProcessIdAndStatus(
            $this->getProcess(),
            [self::STATUS_FAILED, self::STATUS_ABORTED],
            72,
            true
        );
    }
public function countErrorsForProcess(LifecycleEventArgs $event)
    {
        $entityManager = $event->getEntityManager();
        $repository    = $entityManager->getRepository(get_class($this));

        $repository->countByProcessIdAndStatus(
            $this->getProcess(),
            [self::STATUS_FAILED, self::STATUS_ABORTED],
            72,
            true
        );
    }
public function countErrorsForProcess ( LifecycleEventArgs $ event ) { $ entityManager = $ event -> getEntityManager ( ) ; $ repository = $ entityManager -> getRepository ( get_class ( $ this ) ) ; $ repository -> countByProcessIdAndStatus ( $ this -> getProcess ( ) , [ self :: STATUS_FAILED , self :: STATUS_ABORTED ] , 72 , true ) ; }
Gets triggered only after update

@ORM\PostUpdate
@param LifecycleEventArgs $event
Gets triggered only after update