Exemplo n.º 1
0
 /**
  * Override BaseModel::removeRelationships() to update current location fields in ca_objects
  *
  * @param mixed $pm_rel_table_name_or_num
  * @param mixed $pm_type_id
  *
  * @return int
  */
 public function removeRelationships($pm_rel_table_name_or_num, $pm_type_id = null)
 {
     if ($vn_rc = parent::removeRelationships($pm_rel_table_name_or_num, $pm_type_id)) {
         if ($this->relationshipChangeMayAffectCurrentLocation($pm_rel_table_name_or_num, null, $pm_type_id)) {
             $this->deriveCurrentLocationForBrowse();
         }
     }
     return $vn_rc;
 }