Open flopp26 opened 9 years ago
Hi Florent,
The type "date" is not yet supported by AutoFormFillBundle. You can propose a PR with this improvement, I think you just have to add the following code in the Filler service (https://github.com/AppVentus/AutoFormFillBundle/blob/master/Service/Filler.php#L109) :
case 'date':
case 'datetime':
$data = new \Date($this->faker->date);
break;
And just FYI, symfony2 provides a "birthday" field type which should match your need: http://symfony.com/doc/current/reference/forms/types/birthday.html
Hi, I have try your bundle and I get this exception on my form.
Unable to transform value for property path "birthday": Expected a \DateTime.
in my form type: