private function isInheritanceSupported(ClassMetadataInfo $classMetadata)
 {
     if ($classMetadata->isInheritanceTypeSingleTable() && in_array($classMetadata->name, $classMetadata->discriminatorMap, true)) {
         return true;
     }
     return !($classMetadata->isInheritanceTypeSingleTable() || $classMetadata->isInheritanceTypeJoined());
 }