mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Improved wording of Model::invalidFields()
Inspired by http://book.cakephp.org/2.0/en/models/data-validation/validating-data-from-the-controller.html#validating-data-from-the-controller
This commit is contained in:
parent
c8b18164c5
commit
3a4a0e54eb
1 changed files with 5 additions and 2 deletions
|
@ -3142,10 +3142,13 @@ class Model extends Object implements CakeEventListener {
|
|||
}
|
||||
|
||||
/**
|
||||
* 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()) {
|
||||
|
|
Loading…
Reference in a new issue