Exemple #1
0
 public function delete($con = null)
 {
     try {
         $con = Propel::getConnection();
         $con->begin();
         //deletes generic document
         $genericDocument = Document::getGenericDocument($this);
         $genericDocument->delete();
         parent::delete();
         $con->commit();
         Document::deleteObjCache($this);
         return true;
     } catch (Exception $e) {
         $con->rollback();
         throw $e;
     }
 }
 public function __construct($text = NULL, $matchType = NULL, $id = NULL, $BaseCriterionType = NULL)
 {
     parent::__construct();
     $this->text = $text;
     $this->matchType = $matchType;
     $this->id = $id;
     $this->BaseCriterionType = $BaseCriterionType;
 }
Exemple #3
0
 public function getPeer()
 {
     if (self::$peer === null) {
         self::$peer = new KeywordPeer();
     }
     return self::$peer;
 }