public function delete(Model $Model, $conditions = null)
{
$alias = $joins = null;
$table = $this->fullTableName($Model);
$conditions = $this->_matchRecords($Model, $conditions);
if ($conditions === false) {
return false;
}
if ($this->execute($this->renderStatement('delete', compact('alias', 'table', 'joins', 'conditions'))) === false) {
$Model->onError();
return false;
}
return true;
}