Answer the question
In order to leave comments, you need to log in
How to do this kind of validation in Yii2?
Good afternoon.
Yii2 has an Exist validator that checks that if there is no such entry, throw an error.
Tell me, please, how to check the opposite in the model, what if there is such a record - to display an error?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question