class Model extends AppModel{
public function deleteSomething(){
if (empty($this->id)) {
return false;
}
$this->read();
$db =& ConnectionManager::getDataSource($this->useDbConfig);
$db->begin($this);
if (! $this->delete($this->id, true)) {
$db->rollback($this);
return false;
}
return $db->commit($this);
}
For some reason this will not delete?? I have debugged the id and it is correct. Any ideas? Am I missing something? }