private function isPolymorphicType(ClassMetadataInfo $metadata)
    {
        return in_array($metadata->inheritanceType, $this->getPolymorphicTypes()) && null === $metadata->discriminatorValue;
    }
private function isPolymorphicType(ClassMetadataInfo $metadata)
    {
        return in_array($metadata->inheritanceType, $this->getPolymorphicTypes()) && null === $metadata->discriminatorValue;
    }
private function isPolymorphicType ( ClassMetadataInfo $ metadata ) { return in_array ( $ metadata -> inheritanceType , $ this -> getPolymorphicTypes ( ) ) && null === $ metadata -> discriminatorValue ; }
Determines if a Doctrine object is polymorphic, based on its class metadata.

@param   ClassMetadataInfo   $metadata
@return  bool
Determines if a Doctrine object is polymorphic based on its class metadata .