コード例 #1
0
ファイル: HistoryGroup.php プロジェクト: sgrove/cothinker
 public function getLastHistoryEvent()
 {
     $c = new Criteria();
     $c->addDescendingOrderByColumn(HistoryEventPeer::CREATED_AT);
     $c->add(HistoryEventPeer::HISTORY_GROUP_ID, $this->getId());
     $event = HistoryEventPeer::doSelectOne($c);
     return $event;
 }
コード例 #2
0
ファイル: HistoryEventPeer.php プロジェクト: sgrove/cothinker
 public static function retrieveByUuid($value)
 {
     $c = new Criteria();
     $c->add(HistoryEventPeer::UUID, $value);
     return HistoryEventPeer::doSelectOne($c);
 }