'error.key_required'], ['key', EmailActivationKeyValidator::class], ]; } /** * @return EmailActivation|null */ public function getActivationCodeModel() { if ($this->model === null) { $this->model = EmailActivation::findOne($this->key); } return $this->model; } }