Skip to content
Browse files

Updating the doc block for Datasource::delete()

Fixes #2054
  • Loading branch information...
1 parent c143908 commit 2fa2de441f7267cf15dd42b2274fcf76c2eaed19 @markstory markstory committed
Showing with 3 additions and 5 deletions.
  1. +3 −5 cake/libs/model/datasources/datasource.php
View
8 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.
Something went wrong with that request. Please try again.