public function remove($name, ItemInterface $item)
    {
        unset($this->relationships[$name][$item->getId()]);

        if (count($this->relationships[$name]) === 0) {
            unset($this->relationships[$name]);
        }
    }
public function remove($name, ItemInterface $item)
    {
        unset($this->relationships[$name][$item->getId()]);

        if (count($this->relationships[$name]) === 0) {
            unset($this->relationships[$name]);
        }
    }
public function remove ( $ name , ItemInterface $ item ) { unset ( $ this -> relationships [ $ name ] [ $ item -> getId ( ) ] ) ; if ( count ( $ this -> relationships [ $ name ] ) === 0 ) { unset ( $ this -> relationships [ $ name ] ) ; } }
Removes a relationship from the collection.

@param string $name The relationship name
Removes a relationship from the collection .