Monday, February 22, 2010

Not getting one of MySQL errors

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?

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate