protected function _beforeSave() { if ($this->_content !== null) { $this->setSize(strlen($this->_content)); } return parent::_beforeSave(); }
protected function _beforeSave() { if (!empty($this->_logEvents)) { $this->setData('log', Zend_Json::encode($this->_logEvents)); } // make sure we have a message id $this->getMessageId(); parent::_beforeSave(); }