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 this User Model (Item belongsTo User):
function add_basic($email, $password)
{
$this->create();
$this->set(array(
'email' => $email,
'password' => $password));
if ($this->save())
return $this->id;
else
return false;
}
I have confirmed that $email and $password are being passed into the function correctly (are populated with legit data). 'email' and 'password' are the names of the fields in the User model.
I have also confirmed that on $this->save() it is returning false, but when I view the page where this occurs, the query is not being printed in the debug, and there is no error being thrown, so I have no idea whats going wrong.
Any ideas on how I can see the error, or why the query doesn't seem to be getting executed.
it's weird, cause right after this, I have another model saving data to it in the EXACT same fashion, it goes off without a hitch