remove() 공개 메소드

public remove ( Nextras\Orm\Entity\IEntity | mixed $entity, boolean $withCascade = true ) : Nextras\Orm\Entity\IEntity
$entity Nextras\Orm\Entity\IEntity | mixed
$withCascade boolean
리턴 Nextras\Orm\Entity\IEntity
예제 #1
0
파일: Container.php 프로젝트: ytnuk/orm
 public function removeEntity(bool $flush = FALSE)
 {
     $this->repository->remove($this->entity, TRUE);
     if ($flush) {
         $this->repository->flush();
     }
 }