So it is stated in the documentation:
Phalcon\Validation is an independent validation component that validates an arbitrary set of data.
However I found out that there seem to be no way to validate folded arrays.
$validation = new Phalcon\Validation(); $data = ['external' => ['internal' => 1]]; $validation->add("external", new Phalcon\Validation\Validator\PresenceOf()); // How do I validate internal? $validation->add('???', new Phalcon\Validation\Validator\PresenceOf()); $errors = $validation->validate($data);
I've looked into sources, where it ends with
zend_symtable_find, which as far as I understand doesn't go deep into an array (which is absolutely logical by itself).