public function afterFind() { if ($this->type == self::TYPE_IFRAME || $this->type == self::TYPE_LINK) { $this->url = $this->content; } return parent::afterFind(); }