App-Advanced, PasswordResetRequestForm model:
public function rules()
{
return [
['email', 'filter', 'filter' => 'trim'],
['email', 'required'],
['email', 'email'],
['email', 'exist',
'targetClass' => '\common\models\User',
'filter' => ['status' => User::STATUS_ACTIVE],
'message' => 'There is no user with such email.'
],
];
}
Where to find "exist" method?
“\common\models\User” hasn’t it.
And i can’t find it in parent class.