public function detach() { $this->row->detach(); $this->entityFactory = null; $this->mapper = null; }