Closed kayue closed 9 years ago
ManagerRegistry
https://github.com/kayue/symfony-wordpress-edition
Before:
$anotherBlog = $blogManager->findBlogById(2)->getEntityManager(); $posts = $anotherBlog->getRepository('KayueWordpressBundle:Post')->findOneById(1);
After:
$manager = $this->get('kayue_wordpress')->getManager(2); $post = $manager->getRepository('KayueWordpressBundle:Post')->findOneById(1);
ManagerRegistry
to replace the current blog manager.Demo application
https://github.com/kayue/symfony-wordpress-edition
Multisite usage
Before:
After: