Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating doc blocks for model::validates.

  • Loading branch information...
commit be64f26f9f73ae32a7e6798a158fe126af6e07d1 1 parent 6046528
@markstory markstory authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  cake/libs/model/model.php
View
3  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
*/
Please sign in to comment.
Something went wrong with that request. Please try again.