S
S
symnoob2018-05-16 11:03:23
symfony
symnoob, 2018-05-16 11:03:23

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

Good afternoon, forum, the
torment with Symfony continues :-( Created CRUD, all boolean fields (except for the index), in the mysql database
(Data_Type: tinyint [0|1]).
, even before the opening of the form does not reach
how to fix please tell me?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
symnoob, 2018-05-16
@symnoob

Found an error!
strange, did everything through the entity console too.
but for some reason this is generated:

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

    }

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

    }

and everything went!!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question