Example #1
0
 /**
  * Remove item from collection by item key
  *
  * @param mixed $key
  * @return $this
  */
 public function removeItemByKey($key)
 {
     if (isset($this->_items[$key])) {
         unset($this->_itemsById[$this->_items[$key]->getId()]);
     }
     return parent::removeItemByKey($key);
 }