Merge pull request #3248 from dereuromark/2.5-validation

2.5 validation method chaining
This commit is contained in:
José Lorenzo Rodríguez 2014-04-06 23:02:10 +02:00
commit 7c3390b0d7

View file

@ -325,7 +325,12 @@ class CakeValidationSet implements ArrayAccess, IteratorAggregate, Countable {
}
/**
* Sets or replace a validation rule
* Sets or replace a validation rule.
*
* This is a wrapper for ArrayAccess. Use setRule() directly for
* chainable access.
*
* @see http://www.php.net/manual/en/arrayobject.offsetset.php
*
* @param string $index name of the rule
* @param CakeValidationRule|array rule to add to $index