protected function hook_postUpdate() { parent::hook_postUpdate(); $q = $this->_query; /* * TODO: I don't like that we have to run an update immediately after the store * but I don't have a better solution at the moment. * ~ caseydk 2012 Aug 04 */ $q->addTable('events'); $q->addUpdate('event_sequence', "event_sequence+1", false, true); $q->addUpdate('event_updated', "'" . $q->dbfnNowWithTZ() . "'", false, true); $q->addWhere('event_id = ' . (int) $this->event_id); $q->exec(); }