示例#1
0
 private function poiRemove(POI $poi)
 {
     $id = $poi->getId();
     POI::removePoi($poi);
     $this->init->em->remove($poi);
     $this->init->em->flush();
     $this->assertEquals(null, $this->init->poiRepo->find($id));
 }
示例#2
0
 public static function removeAddress(Address $address)
 {
     foreach ($address->getPois() as $p) {
         /** @var $p POI */
         POI::removePoi($p);
     }
 }