Doctrine/DoctrineUtils.php
private static function findZeroIdValue(Type $type)
    {
        if ($type instanceof GuidType) {
            $value = '00000000-0000-0000-0000-000000000000';
        } elseif (self::isNumberType($type)) {
            $value = 0;
        } elseif (self::isStringType($type)) {
            $value = '';
        } else {
            $value = null;
        }

        return $value;
    }
private static function findZeroIdValue(Type $type)
    {
        if ($type instanceof GuidType) {
            $value = '00000000-0000-0000-0000-000000000000';
        } elseif (self::isNumberType($type)) {
            $value = 0;
        } elseif (self::isStringType($type)) {
            $value = '';
        } else {
            $value = null;
        }

        return $value;
    }
private static function findZeroIdValue ( Type $ type ) { if ( $ type instanceof GuidType ) { $ value = '00000000-0000-0000-0000-000000000000' ; } elseif ( self :: isNumberType ( $ type ) ) { $ value = 0 ; } elseif ( self :: isStringType ( $ type ) ) { $ value = '' ; } else { $ value = null ; } return $ value ; }
Find the zero id by identifier type.

@param Type $type The dbal identifier type

@return null|int|string
Find the zero id by identifier type .