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;
}