public function delete($id)
 {
     $entity = $this->find($id);
     $this->entityRepository->delete($entity);
     return $entity;
 }