/** * Detaches Row (it means mark it as non-persisted) */ public function detach() { $data = $this->result->getData($this->id); $this->result = Result::createDetachedInstance(); foreach ($data as $key => $value) { $this->result->setDataEntry(Result::DETACHED_ROW_ID, $key, $value); } $this->id = Result::DETACHED_ROW_ID; }
/** * @param int $id * @return array */ public function getData($id) { return $this->result->getData($id); }