Doctrine/DoctrineUtils.php
public static function getMockZeroId(ClassMetadata $targetEntity)
    {
        if (!isset(self::$cacheZeroIds[$targetEntity->getName()])) {
            $type = self::getIdentifierType($targetEntity);
            self::$cacheZeroIds[$targetEntity->getName()] = self::findZeroIdValue($type);
        }

        return self::$cacheZeroIds[$targetEntity->getName()];
    }
public static function getMockZeroId(ClassMetadata $targetEntity)
    {
        if (!isset(self::$cacheZeroIds[$targetEntity->getName()])) {
            $type = self::getIdentifierType($targetEntity);
            self::$cacheZeroIds[$targetEntity->getName()] = self::findZeroIdValue($type);
        }

        return self::$cacheZeroIds[$targetEntity->getName()];
    }
public static function getMockZeroId ( ClassMetadata $ targetEntity ) { if ( ! isset ( self :: $ cacheZeroIds [ $ targetEntity -> getName ( ) ] ) ) { $ type = self :: getIdentifierType ( $ targetEntity ) ; self :: $ cacheZeroIds [ $ targetEntity -> getName ( ) ] = self :: findZeroIdValue ( $ type ) ; } return self :: $ cacheZeroIds [ $ targetEntity -> getName ( ) ] ; }
Get the mock id for entity identifier.

@param ClassMetadata $targetEntity The target entity

@return null|int|string
Get the mock id for entity identifier .