public function theStoreIsEnabled($enabled = true) { $store = $this->getContainer()->get('elcodi.store'); $store->setEnabled($enabled); $this->getContainer()->get('elcodi.object_manager.store')->flush($store); }