kayue / KayueWordpressBundle

A Symfony 2 bundle for providing WordPress repositories and authenticating users (login).
101 stars 43 forks source link

Attempted to call method "setBlogId" on class "Doctrine\ORM\EntityManager" in vendor/kayue/kayue-wordpress-bundle/Kayue/WordpressBundle/Model/BlogManager.php line 62. #40

Open dbykadorov opened 10 years ago

dbykadorov commented 10 years ago

After upgrade to 1.1.1 from 1.1.0 i'm getting this error:

UndefinedMethodException: Attempted to call method "setBlogId" on class "Doctrine\ORM\EntityManager" in /Users/hudson/Documents/Projects/Gpz2/Six3nine/Src/vendor/kayue/kayue-wordpress-bundle/Kayue/WordpressBundle/Model/BlogManager.php line 62.

when trying to do something like this:

/** @var $blogManager \Kayue\WordpressBundle\Model\BlogManager */
$blogManager = $this->get("kayue_wordpress.blog.manager");
$trainerBlog = $blogManager->findBlogById($trainer->getBlogNumber())->getEntityManager();

Now I'm revert to 1.1.0 to avoid this

diegocastro commented 10 years ago

+1 I'm having the same problem, reverting to 1.1.0 solved it.

damonkelley commented 9 years ago

Same issue here. It appears that Kayue\WordpressBundle\Doctrine\WordpressEntityManager is not being summoned.

kayue commented 9 years ago

Reworking multisite and a lot of things in https://github.com/kayue/KayueWordpressBundle/pull/48 It could solve this problem

dbykadorov commented 9 years ago

@kayue Thanks! I'll try to update on the next week and test it.