public function onAfterLoad(Event $event) { if ($this->params && is_string($this->params)) { $this->params = json_decode($this->params); } }