/** * Override BaseModel::removeRelationship() to update current location fields in ca_objects * * @param mixed $pm_rel_table_name_or_num * @param int $pn_relation_id * * @return int */ public function removeRelationship($pm_rel_table_name_or_num, $pn_relation_id) { if ($vn_rc = parent::removeRelationship($pm_rel_table_name_or_num, $pn_relation_id)) { if ($this->relationshipChangeMayAffectCurrentLocation($pm_rel_table_name_or_num, null, null)) { $this->deriveCurrentLocationForBrowse(); } } return $vn_rc; }