Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

howto do pair wise validations in Phalcon

I want to do pairwise validations in the model!! i.e i want to have unique pair of $user,$phoneno,$age. how to Uniqueness validator to the pairs? Plese help!!



62.6k
Accepted
answer
edited Oct '16

Perhaps those links can help:

https://forum.phalconphp.com/discussion/3641/uniqueness-with-combination-of-a-set-of-fields

https://docs.phalconphp.com/en/latest/api/Phalcon_Validation_Validator_Uniqueness.html

Just add uniqueness validatior for each pair ?