mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Merge pull request #1645 from ShinKenDo/patch-1
Improved wording of Model::invalidFields()
This commit is contained in:
commit
9df34967f5
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
|
* @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()
|
* @see Model::validates()
|
||||||
*/
|
*/
|
||||||
public function invalidFields($options = array()) {
|
public function invalidFields($options = array()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue