Tom C
Tom C

Reputation: 1

Symfony 2 form posting data but not inserting it

I have a form built in Symfony 2.8 and I have been stumped for a few days trying to work out why a field will not populate.

So I have a form that is inserting a product for an order and the fields are all posting but the insert query is not picking up the data. It thinks the field is null.

Any suggestions?

Profiler Screenshot

Symfony Error Screenshot

Upvotes: 0

Views: 46

Answers (1)

habibun
habibun

Reputation: 1630

First check your inserted data is valid for price field or change your price field nullable true.

If it's not helping you then describe your code descriptively.

Upvotes: 1

Related Questions