public static function formatEmptyIdentifier(ClassMetadata $meta)
    {
        $type = $meta->getTypeOfField(current($meta->getIdentifier()));

        switch ($type) {
            case 'bigint':
            case 'decimal':
            case 'integer':
            case 'smallint':
            case 'float':
                return 0;
            case 'guid':
                return '00000000-0000-0000-0000-000000000000';
            default:
                return '';
        }
    }
public static function formatEmptyIdentifier(ClassMetadata $meta)
    {
        $type = $meta->getTypeOfField(current($meta->getIdentifier()));

        switch ($type) {
            case 'bigint':
            case 'decimal':
            case 'integer':
            case 'smallint':
            case 'float':
                return 0;
            case 'guid':
                return '00000000-0000-0000-0000-000000000000';
            default:
                return '';
        }
    }
public static function formatEmptyIdentifier ( ClassMetadata $ meta ) { $ type = $ meta -> getTypeOfField ( current ( $ meta -> getIdentifier ( ) ) ) ; switch ( $ type ) { case 'bigint' : case 'decimal' : case 'integer' : case 'smallint' : case 'float' : return 0 ; case 'guid' : return '00000000-0000-0000-0000-000000000000' ; default : return '' ; } }
Format the empty identifier value for entity with relation.

@param ClassMetadata $meta The class metadata of entity relation

@return int|string
Format the empty identifier value for entity with relation .