public function markAsUpdated($id) { if ($this->isDetached) { throw new InvalidMethodCallException('Detached Result cannot be marked as updated.'); } unset($this->modified[$id]); }