Util/ManagerUtils.php
private static function isValidManager(ObjectManager $manager, $class)
    {
        $meta = $manager->getClassMetadata($class);

        return !$meta instanceof OrmClassMetadata || !$meta->isMappedSuperclass;
    }
private static function isValidManager(ObjectManager $manager, $class)
    {
        $meta = $manager->getClassMetadata($class);

        return !$meta instanceof OrmClassMetadata || !$meta->isMappedSuperclass;
    }
private static function isValidManager ( ObjectManager $ manager , $ class ) { $ meta = $ manager -> getClassMetadata ( $ class ) ; return ! $ meta instanceof OrmClassMetadata || ! $ meta -> isMappedSuperclass ; }
Check if the object manager is valid.

@param ObjectManager $manager The object manager
@param string        $class   The class name

@return bool
Check if the object manager is valid .