public function delete(array $id) { $id['ip'] = ip2long($id['ip']); $this->em->remove($this->repository->findOneBy($id)); $this->em->flush(); }