|
@@ -319,8 +319,7 @@ class Validator implements \ArrayAccess, \IteratorAggregate, \Countable {
|
|
|
*
|
|
*
|
|
|
* @param string $field the name of the field
|
|
* @param string $field the name of the field
|
|
|
* @param bool|string $mode Valid values are true, false, 'create', 'update'
|
|
* @param bool|string $mode Valid values are true, false, 'create', 'update'
|
|
|
- * @param string $message The validation message to show if the field presence
|
|
|
|
|
- * is required.
|
|
|
|
|
|
|
+ * @param string $message The message to show if the field presence validation fails.
|
|
|
* @return Validator this instance
|
|
* @return Validator this instance
|
|
|
*/
|
|
*/
|
|
|
public function requirePresence($field, $mode = true, $message = null) {
|
|
public function requirePresence($field, $mode = true, $message = null) {
|
|
@@ -338,8 +337,7 @@ class Validator implements \ArrayAccess, \IteratorAggregate, \Countable {
|
|
|
*
|
|
*
|
|
|
* @param string $field the name of the field
|
|
* @param string $field the name of the field
|
|
|
* @param bool|string $mode Valid values are true, false, 'create', 'update'
|
|
* @param bool|string $mode Valid values are true, false, 'create', 'update'
|
|
|
- * @param string $message The validation message to show if the field presence
|
|
|
|
|
- * is required.
|
|
|
|
|
|
|
+ * @param string $message The message to show if the field presence validation fails.
|
|
|
* @return Validator this instance
|
|
* @return Validator this instance
|
|
|
* @deprecated 3.0.0 Will be removed in 3.0.0.
|
|
* @deprecated 3.0.0 Will be removed in 3.0.0.
|
|
|
*/
|
|
*/
|