Exemplo n.º 1
0
 /**
  * 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;
 }
Exemplo n.º 2
0
 /**
  * @param int $id
  * @return array
  */
 public function getData($id)
 {
     return $this->result->getData($id);
 }