/** * Use the association to remove the item from the collection * @param integer $offset */ public function offsetUnset($offset) { $this->_load_content(); if (isset($this->_content[$offset])) { $item = $this->offsetGet($offset); } parent::offsetUnset($offset); if (isset($item) and $item instanceof Jam_Model) { $this->association()->item_unset($this->parent(), $item); } }