I have a user object with a birthday column:
/**
* Birthday
*
* @ORM\Column(type="date", nullable=true)
*/
protected $birthday;
In the registration form i add the birthday widget as followed:
->add('birthday', 'birthday')
But when I send the form, I get This value is not valid error for that field.
I’ve tried some alternatives, but none of them worked:
->add('birthday', 'date')
->add('birthday', 'date', array('input' => 'string'))
Does anyone have a solution?
Dumb mistake..!!
My timezone settings in php.ini was invalid which caused the date transformer to throw an exception