src/MappingHelper.php
public static function setSimpleFields(
        array $fieldToType,
        ClassMetadataBuilder $builder
    ): void {
        foreach ($fieldToType as $field => $type) {
            $method = "setSimple$type" . 'fields';
            static::$method([$field], $builder);
        }
    }
public static function setSimpleFields(
        array $fieldToType,
        ClassMetadataBuilder $builder
    ): void {
        foreach ($fieldToType as $field => $type) {
            $method = "setSimple$type" . 'fields';
            static::$method([$field], $builder);
        }
    }
public static function setSimpleFields ( array $ fieldToType , ClassMetadataBuilder $ builder ) : void { foreach ( $ fieldToType as $ field => $ type ) { $ method = "setSimple$type" . 'fields' ; static :: $ method ( [ $ field ] , $ builder ) ; } }
Bulk create multiple fields of different simple types

Always creates nullable fields, if you want to set a default, you must call the type based method

@param array                $fieldToType [
'fieldName'=>'fieldSimpleType'
]
@param ClassMetadataBuilder $builder
Bulk create multiple fields of different simple types