public function delete() { $db = Loader::db(); $db->Execute('delete from GatheringItemFeatureAssignments where faID = ? and gaiID = ?', array($this->getFeatureAssignmentID(), $this->gaiID)); if (!$this->assignmentIsInUse()) { parent::delete(); } }
public function delete() { $db = Loader::db(); $db->Execute('delete from BlockFeatureAssignments where faID = ? and cID = ? and cvID = ?', array($this->getFeatureAssignmentID(), $this->cID, $this->cvID)); $db->Execute('delete from CollectionVersionFeatureAssignments where faID = ? and cID = ? and cvID = ?', array($this->getFeatureAssignmentID(), $this->cID, $this->cvID)); if (!$this->assignmentIsInUse()) { parent::delete(); } }