original_string: public function remove($name, ItemInterface $item)
      {
          unset($this->relationships[$name][$item->getId()]);
  
          if (count($this->relationships[$name]) === 0) {
              unset($this->relationships[$name]);
          }
      }
code: public function remove($name, ItemInterface $item)
      {
          unset($this->relationships[$name][$item->getId()]);
  
          if (count($this->relationships[$name]) === 0) {
              unset($this->relationships[$name]);
          }
      }
code_tokens: public function remove ( $ name , ItemInterface $ item ) { unset ( $ this -> relationships [ $ name ] [ $ item -> getId ( ) ] ) ; if ( count ( $ this -> relationships [ $ name ] ) === 0 ) { unset ( $ this -> relationships [ $ name ] ) ; } }
docstring: Removes a relationship from the collection.
  
  @param string $name The relationship name
docstring_tokens: Removes a relationship from the collection .