protected function beforeSaveAction() { parent::beforeSaveAction(); if ($this->getCampaignId() != '') { $this->setAccountId($this->resolveAccountId($this->getCampaignId())); } }