KayueWordpressBundle icon indicating copy to clipboard operation
KayueWordpressBundle copied to clipboard

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

Open dbykadorov opened this issue 10 years ago • 4 comments

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

dbykadorov avatar Jun 18 '14 21:06 dbykadorov

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

diegocastro avatar Aug 19 '14 20:08 diegocastro

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

damonkelley avatar Sep 26 '14 21:09 damonkelley

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

kayue avatar Sep 27 '14 10:09 kayue

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

dbykadorov avatar Sep 27 '14 13:09 dbykadorov