Browse Source

Improve docblock

ADmad 13 years ago
parent
commit
c159854a17
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lib/Cake/Model/Model.php

+ 3 - 1
lib/Cake/Model/Model.php

@@ -1569,7 +1569,9 @@ class Model extends Object implements CakeEventListener {
  *
  * @param string $name Name of the table field
  * @param mixed $value Value of the field
- * @param array $validate See $options param in Model::save(). Does not respect 'fieldList' key if passed
+ * @param boolean|array $validate Either a boolean, or an array.
+ *   If a boolean, indicates whether or not to validate before saving.
+ *   If an array, allows control of 'validate' and 'callbacks' options.
  * @return boolean See Model::save()
  * @see Model::save()
  * @link http://book.cakephp.org/2.0/en/models/saving-your-data.html#model-savefield-string-fieldname-string-fieldvalue-validate-false