lib/Doctrine/ODM/MongoDB/Persisters/DocumentPersister.php
private function getClassDiscriminatorValues(ClassMetadata $metadata)
    {
        $discriminatorValues = array($metadata->discriminatorValue);
        foreach ($metadata->subClasses as $className) {
            if ($key = array_search($className, $metadata->discriminatorMap)) {
                $discriminatorValues[] = $key;
            }
        }
        return $discriminatorValues;
    }
private function getClassDiscriminatorValues(ClassMetadata $metadata)
    {
        $discriminatorValues = array($metadata->discriminatorValue);
        foreach ($metadata->subClasses as $className) {
            if ($key = array_search($className, $metadata->discriminatorMap)) {
                $discriminatorValues[] = $key;
            }
        }
        return $discriminatorValues;
    }
private function getClassDiscriminatorValues ( ClassMetadata $ metadata ) { $ discriminatorValues = array ( $ metadata -> discriminatorValue ) ; foreach ( $ metadata -> subClasses as $ className ) { if ( $ key = array_search ( $ className , $ metadata -> discriminatorMap ) ) { $ discriminatorValues [ ] = $ key ; } } return $ discriminatorValues ; }
Gets the array of discriminator values for the given ClassMetadata

@param ClassMetadata $metadata
@return array
Gets the array of discriminator values for the given ClassMetadata