public function removeAt($index)
    {
        if (isset($this[$index])) {
            foreach ($this->_associated_objects as $parent_property => $object) {
                /**
                 * @var Model
                 */
                $object->setDirty($parent_property);
            }
            unset($this[$index]);
        }
    }
public function removeAt($index)
    {
        if (isset($this[$index])) {
            foreach ($this->_associated_objects as $parent_property => $object) {
                /**
                 * @var Model
                 */
                $object->setDirty($parent_property);
            }
            unset($this[$index]);
        }
    }
public function removeAt ( $ index ) { if ( isset ( $ this [ $ index ] ) ) { foreach ( $ this -> _associated_objects as $ parent_property => $ object ) { /**
                 * @var Model
                 */ $ object -> setDirty ( $ parent_property ) ; } unset ( $ this [ $ index ] ) ; } }
Remove an item at a specific index

@param $index
Remove an item at a specific index