Example #1
0
 public function log($command, $code, $message)
 {
     $log = new LogGit();
     $this->connection->beginTransaction();
     try {
         $log->setCommand($command)->setCode($code)->setMessage($message)->save($this->connection);
         $this->connection->commit();
     } catch (Exception $e) {
         $this->connection->rollBack();
     }
 }
Example #2
0
 /**
  * Exclude object from result
  *
  * @param     LogGit $logGit Object to remove from the list of results
  *
  * @return    LogGitQuery The current query, for fluid interface
  */
 public function prune($logGit = null)
 {
     if ($logGit) {
         $this->addUsingAlias(LogGitPeer::ID, $logGit->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }