src/Charcoal/Model/Collection.php
public function remove($key)
    {
        if ($this->isAcceptable($key)) {
            $key = $this->modelKey($key);
        }

        unset($this->objects[$key]);

        return $this;
    }
public function remove($key)
    {
        if ($this->isAcceptable($key)) {
            $key = $this->modelKey($key);
        }

        unset($this->objects[$key]);

        return $this;
    }
public function remove ( $ key ) { if ( $ this -> isAcceptable ( $ key ) ) { $ key = $ this -> modelKey ( $ key ) ; } unset ( $ this -> objects [ $ key ] ) ; return $ this ; }
Remove object from collection by primary key.

@param  mixed $key The object primary key to remove.
@throws InvalidArgumentException If the given key is not acceptable.
@return self
Remove object from collection by primary key .