public function remove($element)
    {
        $trueId = $this->getTrueId($element);

        $this->objects[$trueId]->destroy();

        unset($this->objects[$trueId]);
        unset($this->ids[$trueId]);
    }
public function remove($element)
    {
        $trueId = $this->getTrueId($element);

        $this->objects[$trueId]->destroy();

        unset($this->objects[$trueId]);
        unset($this->ids[$trueId]);
    }
public function remove ( $ element ) { $ trueId = $ this -> getTrueId ( $ element ) ; $ this -> objects [ $ trueId ] -> destroy ( ) ; unset ( $ this -> objects [ $ trueId ] ) ; unset ( $ this -> ids [ $ trueId ] ) ; }
Remove the element from the collection

@return void
Remove the element from the collection