public function isTracked(EntityManagerInterface $em, $entity)
    {
        $class       = get_class($entity);
        $annotations = $this->reader->getClassAnnotations($em->getClassMetadata($class)->getReflectionClass());

        foreach ($annotations as $annotation) {
            if ($annotation instanceof Tracked) {
                return true;
            }
        }

        return false;
    }
public function isTracked(EntityManagerInterface $em, $entity)
    {
        $class       = get_class($entity);
        $annotations = $this->reader->getClassAnnotations($em->getClassMetadata($class)->getReflectionClass());

        foreach ($annotations as $annotation) {
            if ($annotation instanceof Tracked) {
                return true;
            }
        }

        return false;
    }
public function isTracked ( EntityManagerInterface $ em , $ entity ) { $ class = get_class ( $ entity ) ; $ annotations = $ this -> reader -> getClassAnnotations ( $ em -> getClassMetadata ( $ class ) -> getReflectionClass ( ) ) ; foreach ( $ annotations as $ annotation ) { if ( $ annotation instanceof Tracked ) { return true ; } } return false ; }
Get the annotation from a class or null if it doesn't exists.

@param EntityManagerInterface $em
@param mixed                  $entity
@return bool
Get the annotation from a class or null if it doesn t exists .