Borales/yii2-phone-input

unique validator

Closed this issue · 1 comments

svok commented

Is there any way to use PhoneInputValidator with unique vlidation? The problem is db phone and local phone are in different formats, so unique validation does not work properly.

@svok I've made some changes, phone number formatter runs on EVENT_BEFORE_VALIDATE event, so unique rule should get a proper value