Skip to content

Commit

Permalink
Updating the doc block for Datasource::delete()
Browse files Browse the repository at this point in the history
Fixes #2054
  • Loading branch information
markstory committed Oct 6, 2011
1 parent c143908 commit 2fa2de4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cake/libs/model/datasources/datasource.php
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 2fa2de4

Please sign in to comment.