public function markSaved($model) { $hash = spl_object_hash($model); if (isset($this->pending[$hash])) { unset($this->pending[$hash]); } $this->saved[$hash] = $model; }