SyliusSchedulerCommandPlugin icon indicating copy to clipboard operation
SyliusSchedulerCommandPlugin copied to clipboard

[Feature] Guide about doctrine naming_strategy

Open vasilvestre opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. When I install the project, with the naming strategy doctrine.orm.naming_strategy.underscore the fields are not found due to other case being used than underscore.

Unknown column 's0_.cron_expression' in 'field list'

Describe the solution you'd like I'm not sure what the fix should be but a note about this would be great.

vasilvestre avatar Mar 13 '24 13:03 vasilvestre

Yes,

We haven't specified the field names. For example :

    #[ORM\Column(type: Types::STRING)]
    private string $cronExpression = '* * * * *';

The doctrine.orm.naming_strategy.underscore configuration is not the default configuration in Sylius (which is a shame, by the way).

I think we should specify the field names in the Plugin, because it's a shame to have to migrate the project for this.

oallain avatar Mar 22 '25 20:03 oallain