Open lukepass opened 4 years ago
Any news on this subject? It's still happening in the current version.
Hello, any news or manual workaround for this? Thanks.
May you can overload documentation property name using documentation option on FormType ? https://symfony.com/doc/4.x/bundles/NelmioApiDocBundle/index.html#symfony-form-types
Look at something like this ->add('newsletterAccepted', null, ['documentation' => ['name' => 'newsletter_accepted'])
Hello, I already tried it but unfortunately there is no way to override the name. It's simply overridden with the camel case format.
Hello! Today I tried with the latest version but unfortunately the problem is still here. There is no way to have the form properties as snake case, which is very strange since all the other entity properties are displaying correctly. Any workaround?
Thanks!
I'm a bit confused here, wouldn't the form not work if a user submitted the snake_case property? Does FOSRestBundle modify forms in some way?
Can you provide some details on how FOSRestBundle modifies the form?
Hello, I have set JMSSerializer / FOSRestBundle to use snake case and it's working fine. Unfortunately Nelmio is not showing the properties as snake case when using forms:
This is the form class:
Thanks!