public function isEntity(string $className): bool
    {
        return class_exists($className) && !$this->entityManager->getMetadataFactory()->isTransient($className);
    }
public function isEntity(string $className): bool
    {
        return class_exists($className) && !$this->entityManager->getMetadataFactory()->isTransient($className);
    }
public function isEntity ( string $ className ) : bool { return class_exists ( $ className ) && ! $ this -> entityManager -> getMetadataFactory ( ) -> isTransient ( $ className ) ; }
Checks if a className is a valid doctrine entity

@param string $className

@return bool
Checks if a className is a valid doctrine entity