Skip to content
Permalink
Browse files

Updating the doc block for Datasource::delete()

Fixes #2054
  • Loading branch information...
markstory committed Oct 6, 2011
1 parent c143908 commit 2fa2de441f7267cf15dd42b2274fcf76c2eaed19
Showing with 3 additions and 5 deletions.
  1. +3 −5 cake/libs/model/datasources/datasource.php
@@ -375,13 +375,11 @@ function update(&$model, $fields = null, $values = null) {
* To-be-overridden in subclasses.
*
* @param Model $model The model class having record(s) deleted
* @param mixed $id Primary key of the model
* @param mixed $conditions The conditions to use for deleting.
* @access public
*/
function delete(&$model, $id = null) {
if ($id == null) {
$id = $model->id;
}
function delete(&$model, $conditions = null) {
return false;
}
/**

0 comments on commit 2fa2de4

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.