I have this field in essence:
protected $done = 0;
In the tinyint(1) database tinyint(1) . When I try to add it to the form:
$builder ->add('done', 'checkbox')
Gives an error message:
Unable to transform value for property path "done": Expected a Boolean.
BUT? Isn't that logical?
php symfony
dontHaveName
source share