public function remove_composite(rental_composite $composite_to_remove) { unset($this->composites[$composite_to_remove]); $so = self::get_so(); $so->remove_composite($this->get_id(), $composite_to_remove->get_id()); }