public function install($offset) { $theme = $this->loader->find($offset); $theme->setInstalledVersion(); $em = $this->getEntityManager(); $em->persist($theme); }