Symfony 4 Unable to transform a value for property path "furnace": Expected a Boolean. what is this error how to fix?

Good afternoon forum,

the torment continues with Symfony :-(

Created CRUD, all boolean fields (in addition to indiicator), in a mysql database (Data_Type: tinyint [0/1]).

Insert happens without error, but update the data here-this error is coming even before the opening of formulae does not reach.

how to fix please tell me?
June 5th 19 at 21:38
1 answer
June 5th 19 at 21:40
Founded a bug!

strange, did everything via the console entity too.

but for some reason, generate it here:

public function getFurnace(): ?string
 return $this->furnace;


changed to:

public function getFurnace(): ?bool
 return $this->furnace;


and it all went!!
This is not a solution but a PPC crutch.
Ie you can be true/false or null.

But the Boolean type is in fact only has two state true and false.
The third is not given. This means that by default, you put either true or false.
Change the state of the model.

I hope you did to study and not for production.

A little note, Boolean methods should be called isFurnace () : bool - Austin commented on June 5th 19 at 21:43

Find more questions by tags Doctrine ORMSymfony