protected function getTypeStringForEntity($class, EntityMap $entityMap)
    {
        $class = $entityMap->getClass();

        $type = array_keys(
            $entityMap->getDiscriminatorColumnMap(),
            $class
        );

        if (count($type) == 0) {
            return $class;
        }

        return $type[0];
    }
protected function getTypeStringForEntity($class, EntityMap $entityMap)
    {
        $class = $entityMap->getClass();

        $type = array_keys(
            $entityMap->getDiscriminatorColumnMap(),
            $class
        );

        if (count($type) == 0) {
            return $class;
        }

        return $type[0];
    }
protected function getTypeStringForEntity ( $ class , EntityMap $ entityMap ) { $ class = $ entityMap -> getClass ( ) ; $ type = array_keys ( $ entityMap -> getDiscriminatorColumnMap ( ) , $ class ) ; if ( count ( $ type ) == 0 ) { return $ class ; } return $ type [ 0 ] ; }
Get the normalized value to use for query on discriminator column.

@param string    $class
@param EntityMap $entityMap

@return string
Get the normalized value to use for query on discriminator column .