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

前端 未结 8 1829
一生所求
一生所求 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:31

    The other situation where CakePHP fails to report any $this->Model->validationErrors and no other errors is potentially when $this->request->data isn't as Cake expects and is simply ignoring your data, not saving, no validation errors. For example if your data was provided by DataTables you might see this format $this->request->data[0]['Model']['some_field'].

    $this->Model->save($this->request->data[0]) will work however.

提交回复
热议问题