Skip to content

Commit

Permalink
Merge pull request #1645 from ShinKenDo/patch-1
Browse files Browse the repository at this point in the history
Improved wording of Model::invalidFields()
  • Loading branch information
markstory committed Sep 16, 2013
2 parents c8b1816 + 3a4a0e5 commit 9df3496
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/Cake/Model/Model.php
Expand Up @@ -3142,10 +3142,13 @@ public function validates($options = array()) {
}

/**
* Returns an array of fields that have failed validation. On the current model.
* Returns an array of fields that have failed the validation of the current model.
*
* Additionally it populates the validationErrors property of the model with the same array.
*
* @param string $options An optional array of custom options to be made available in the beforeValidate callback
* @return array Array of invalid fields
* @return array Array of invalid fields and its error messages
*
* @see Model::validates()
*/
public function invalidFields($options = array()) {
Expand Down

0 comments on commit 9df3496

Please sign in to comment.