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