CakePHP: Model save function returning false without an error or SQL statements
I recently was running into an issue where the function
$this->User->save($this->data); was returning
false without any indication of an error, and also there was no SQL statement in the debugging section.
With some help from this stack overflow post, I found the error by putting the following after the save function in my controller:
This allowed me to see that the form was invalid because of a missing field, a field which I forgot to include the HTML for in the view and therefore the error was not displaying.