lib/Doctrine/ORM/Query/ResultSetMappingBuilder.php
private function isInheritanceSupported(ClassMetadata $metadata)
    {
        if ($metadata->inheritanceType === InheritanceType::SINGLE_TABLE
            && in_array($metadata->getClassName(), $metadata->discriminatorMap, true)) {
            return true;
        }

        return ! in_array($metadata->inheritanceType, [InheritanceType::SINGLE_TABLE, InheritanceType::JOINED], true);
    }
private function isInheritanceSupported(ClassMetadata $metadata)
    {
        if ($metadata->inheritanceType === InheritanceType::SINGLE_TABLE
            && in_array($metadata->getClassName(), $metadata->discriminatorMap, true)) {
            return true;
        }

        return ! in_array($metadata->inheritanceType, [InheritanceType::SINGLE_TABLE, InheritanceType::JOINED], true);
    }
private function isInheritanceSupported ( ClassMetadata $ metadata ) { if ( $ metadata -> inheritanceType === InheritanceType :: SINGLE_TABLE && in_array ( $ metadata -> getClassName ( ) , $ metadata -> discriminatorMap , true ) ) { return true ; } return ! in_array ( $ metadata -> inheritanceType , [ InheritanceType :: SINGLE_TABLE , InheritanceType :: JOINED ] , true ) ; }
Checks if inheritance if supported.

@return bool
Checks if inheritance if supported .