Closed dqnguyen1989 closed 10 years ago
Try to retrive entity manager via kayue_wordpress.blog.manage
service first:
$blogManager = $this->get('kayue_wordpress.blog.manager');
$em = $blogManager->findBlogById(3)->getEntityManager();
$posts = $em->createQueryBuilder(); // do your query here
Thanks Kayue. It's working fine.
Hi Kayue, I'm using this code to load term by it's parent id
Can I using this code to get data from multisite blog? I want to do more work with your bundle, thanks.