public function uninstall($id) { $em = $this->getEntityManager(); $theme = $em->getReference($this->getEntityName(), (int) $id); $em->remove($theme); }