public function switchBlog($id) { $this->managerRegistry->setCurrentBlogId($id); $this->manager = $this->managerRegistry->getManager(); }