/** * Refreshes the Collection contents * @postcondition moves removed items back into active list * @postcondition removes any added items */ public function refresh() { parent::refresh(); foreach ($this->_objects as $key => $model) { if ($this->hasAdded($key)) { unset($this->_objects[$key]); } else { $model->refresh(); } } }