protected function _preSave($is_new)
 {
     parent::_preSave($is_new);
     if ($is_new) {
         $this->_created_at = NOW;
     }
 }
 protected function _preSave($is_new)
 {
     parent::_preSave($is_new);
     if ($is_new) {
         $this->_time = NOW;
     }
 }
 protected function _preSave($is_new)
 {
     parent::_preSave($is_new);
     $this->_date = NOW;
     $this->_author = TBGContext::getUser();
 }
 protected function _preSave($is_new)
 {
     parent::_preSave($is_new);
     if ($is_new) {
         if (!$this->_posted) {
             $this->_posted = NOW;
         }
         if (!$this->_comment_number) {
             $this->_comment_number = TBGCommentsTable::getTable()->getNextCommentNumber($this->_target_id, $this->_target_type);
         }
     }
 }
 protected function _preSave($is_new)
 {
     parent::_preSave($is_new);
     $this->_sortfields = $this->getSortFieldsAsString();
     $this->_columns = join(',', $this->getColumns());
 }