public function getUser() { return $this->hasOne(User::className(), ['id' => 'uid']); }
public function rules() { return [['email', 'required'], ['email', 'email'], ['email', 'exist', 'targetClass' => User::className(), 'message' => 'Email not found in the system!']]; }