8000
Validation breaks when indexBy="myDate" (date field) #35604
Labels
Uh oh!
There was an error while loading. Please reload this page.
When validating a doctrine object, the following error is shown;
My field is declared as follows;
The problem resides due to my
indexBy
declaration refers to a date column, and there's no support in the DoctrineExtractor class for determining what kind of php-type it refers to.Something similar is raised here;
#35542
In vendor/symfony/doctrine-bridge/PropertyInfo/DoctrineExtractor.php:252 ... there's no support for 'date' fields .. eg;
And I think it's possibly related to a commit here;
b50360f
I started putting together a PR for this but don't understand it well enough to confidently say it won't break something else if it's just declared as a string as above.
My Symfony version is the latest - 5.0.4
The text was updated successfully, but these errors were encountered: