/**
  * Delete
  *
  * @param integer $id
  */
 public function delete($id)
 {
     $record = $this->repository->find($id);
     if (!$record) {
         throw new NotFoundHttpException('Unable to find Redirect entity.');
     }
     $this->om->remove($record);
     $this->om->flush();
 }