/** * */ protected function _beforeUpdate() { parent::_beforeUpdate(); if (empty($this->description)) { $this->setDescription(substr(strip_tags($this->getContent()), 0, 255)); } }