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

Get doctrine entity manager #291

Closed
richardmiller-zz opened this issue May 15, 2011 · 3 comments
Closed

Get doctrine entity manager #291

richardmiller-zz opened this issue May 15, 2011 · 3 comments

Comments

@richardmiller-zz
Copy link
Contributor

On this page http://symfony.com/doc/current/book/doctrine/orm.html it says to do the following to get an entity manager:

$em = $this->get('doctrine')->getEntityManager();

which doesn't work in current version and just gives a service not found message. The following does get an entity manager:

$em = $this->get('doctrine.orm.entity_manager');

@jdreesen
Copy link
Contributor

I think the docs are already describing the upcoming beta2 where this was changed ;)

@richardmiller-zz
Copy link
Contributor Author

ok makes sense then, just seemed to be confusing a few people.

@weaverryan
Copy link
Member

Yes, it'll be nice once we actually hit the stable release. Then, if we have changes like this, we'll have two different version of the documentation to represent it.

Thanks for being vigilant.

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

3 participants