src/Mappings/Subscribers/MappedEventSubscriber.php
protected function isInstantiable(ClassMetadata $metadata)
    {
        if ($metadata->isMappedSuperclass) {
            return false;
        }

        if (!$metadata->getReflectionClass() || $metadata->getReflectionClass()->isAbstract()) {
            return false;
        }

        return true;
    }
protected function isInstantiable(ClassMetadata $metadata)
    {
        if ($metadata->isMappedSuperclass) {
            return false;
        }

        if (!$metadata->getReflectionClass() || $metadata->getReflectionClass()->isAbstract()) {
            return false;
        }

        return true;
    }
protected function isInstantiable ( ClassMetadata $ metadata ) { if ( $ metadata -> isMappedSuperclass ) { return false ; } if ( ! $ metadata -> getReflectionClass ( ) || $ metadata -> getReflectionClass ( ) -> isAbstract ( ) ) { return false ; } return true ; }
A MappedSuperClass or Abstract class cannot be instantiated.

@param ClassMetadata $metadata

@return bool
A MappedSuperClass or Abstract class cannot be instantiated .