public function validationDoNotRequirePresence(UserValidator $validator)
    {
        //No field is required
        foreach ($validator->getIterator() as $field => $rules) {
            $validator->requirePresence($field, false);
        }

        return $validator;
    }
public function validationDoNotRequirePresence(UserValidator $validator)
    {
        //No field is required
        foreach ($validator->getIterator() as $field => $rules) {
            $validator->requirePresence($field, false);
        }

        return $validator;
    }
public function validationDoNotRequirePresence ( UserValidator $ validator ) { //No field is required foreach ( $ validator -> getIterator ( ) as $ field => $ rules ) { $ validator -> requirePresence ( $ field , false ) ; } return $ validator ; }
Validation "do not require presence".

This validator doesn't require the presence of fields.
@param UserValidator $validator Validator instance
@return UserValidator
Validation do not require presence .