public function executeAddLog()
 {
     try {
         $this->log = sfEmendLogPeer::add(array('msg_type' => $this->getRequestParameter('msg_type'), 'msg' => $this->getRequestParameter('msg')));
     } catch (Exception $e) {
         $this->error = 'It was not possible to add the log to the document. ' . $e->getMessage();
     }
 }
 public static function retrieveByPKs($pks, $con = null)
 {
     if ($con === null) {
         $con = Propel::getConnection(self::DATABASE_NAME);
     }
     $objs = null;
     if (empty($pks)) {
         $objs = array();
     } else {
         $criteria = new Criteria();
         $criteria->add(sfEmendLogPeer::ID, $pks, Criteria::IN);
         $objs = sfEmendLogPeer::doSelect($criteria, $con);
     }
     return $objs;
 }