public function afterFind() { $this->sourceMessage = $this->sourceMessageModel ? $this->sourceMessageModel->message : null; $this->category = $this->sourceMessageModel ? $this->sourceMessageModel->category : null; return parent::afterFind(); }
public function afterFind() { parent::afterFind(); $this->settings = $this->settings !== '' ? json_decode($this->settings, true) : self::getDefaultSettings($this->name); }