コード例 #1
0
ファイル: SuggestedFeature.php プロジェクト: sgrove/cothinker
 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();
 }