detach() public method

Detaches Row (it means mark it as non-persisted)
public detach ( )
コード例 #1
0
ファイル: Entity.php プロジェクト: tharos/leanmapper
 /**
  * Detaches entity
  */
 public function detach()
 {
     $this->row->detach();
     $this->entityFactory = null;
     $this->mapper = null;
 }
コード例 #2
0
ファイル: Entity.php プロジェクト: castamir/LeanMapper
 /**
  * Detaches entity
  */
 public function detach()
 {
     $this->row->detach();
     $this->mapper = null;
 }