Hi, i want to using the Callback validator with multiple field like this
$validator->add(
['is_digital', 'is_preorder'],
new Phalcon\Validation\Validator\Callback(
[
'callback' => function($data) {
return is_bool($data); // <- how to handle them in in single command?
/**
* Is need to using 'throw new Exception' for each field?
*/
},
'message' => ':field must boolean'
]
));
Did i need doing that in separate command?