save() returning false, but with no error in CakePHP

前端 未结 8 1823
一生所求
一生所求 2020-12-15 02:52

My debug value is set to 2, and it\'s displaying all the queries, except the one I need.

I have an Items controller method that is calling

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-15 03:32

    Make sure to check your tables:

    • Does ID have auto increment enabled?
    • Is id your primary key?

    the auto_increment issues killed me. Easy way to check: if any of your rows have ID = 0, auto_increment is likely disabled.

提交回复
热议问题