Jerome Roethlisberger 2013-09-16 16:13:58 +02:00
parent c8b18164c5
commit 3a4a0e54eb

View file

@ -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()) {