Permalink
Browse files

Updating doc blocks for model::validates.

  • Loading branch information...
1 parent 6046528 commit be64f26f9f73ae32a7e6798a158fe126af6e07d1 @markstory markstory committed Dec 3, 2009
Showing with 3 additions and 0 deletions.
  1. +3 −0 cake/libs/model/model.php
@@ -2333,6 +2333,8 @@ function query() {
/**
* Returns true if all fields pass validation.
*
+ * Will validate the currently set data. Use Model::set() or Model::create() to set the active data.
+ *
* @param string $options An optional array of custom options to be made available in the beforeValidate callback
* @return boolean True if there are no errors
* @access public
@@ -2350,6 +2352,7 @@ function validates($options = array()) {
*
* @param string $options An optional array of custom options to be made available in the beforeValidate callback
* @return array Array of invalid fields
+ * @see Model::validates()
* @access public
* @link http://book.cakephp.org/view/410/Validating-Data-from-the-Controller
*/

0 comments on commit be64f26

Please sign in to comment.