correct ID and the proper permissions to delete records.
Here's the code (obfuscated) from the controller:
// load model
$this->loadModel("MyModel");
// make sure we have correct ID - double checked this so I know it's
right
$this->log($thingToDel["Thing"]["id"], LOG_DEBUG);
// delete record
$this->MyModel->delete($thingToDel["Thing"]["id"]);
I checked back in the database and the record I'm trying to delete is
still there. What's another way I can debug this problem? Can I
override the delete method in my model somehow? Thanks in advance for
any help.
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
No comments:
Post a Comment