public function addHistoryEvent($title, $text, $category = 'features') { sfContext::getInstance()->getLogger()->info('grabbing project history group'); $group = $this->getHistoryGroup(); $event = new HistoryEvent(); $event->setTitle($title); $event->setText($text); $event->setHistoryGroupId($group->getId()); $event->setCategory($category); sfContext::getInstance()->getLogger()->info('adding event'); $event->save(); $group->addHistoryEvent($event); $event->save(); }