Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jun 18, 2014 · 4 comments

Comments

@dbykadorov
Copy link

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 dbykadorov changed the title UndefinedMethodException: Attempted to call method "setBlogId" on class "Doctrine\ORM\EntityManager" in vendor/kayue/kayue-wordpress-bundle/Kayue/WordpressBundle/Model/BlogManager.php line 62. Attempted to call method "setBlogId" on class "Doctrine\ORM\EntityManager" in vendor/kayue/kayue-wordpress-bundle/Kayue/WordpressBundle/Model/BlogManager.php line 62. Jun 18, 2014
@diegocastro
Copy link

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

@damonkelley
Copy link

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

@kayue
Copy link
Owner

kayue commented Sep 27, 2014

Reworking multisite and a lot of things in #48
It could solve this problem

@dbykadorov
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants