Example #1
0
 public function delete($con = null, $updateCache = true)
 {
     $id = $this->getId1();
     parent::delete();
     if (sfConfig::get('sf_cache_relations') && $updateCache) {
         self::updateRelationCache($id);
     }
 }
Example #2
0
 public function getPeer()
 {
     if (self::$peer === null) {
         self::$peer = new RelationPeer();
     }
     return self::$peer;
 }
 public function delete($connection = null)
 {
     parent::delete($connection);
     if ($this->object instanceof QubitInformationObject) {
         QubitSearch::updateInformationObject($this->object);
     }
     if ($this->subject instanceof QubitInformationObject) {
         QubitSearch::updateInformationObject($this->subject);
     }
 }