Skip to content

Updating way of getting entity manager to use base controller helper method #1987

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

Merged
merged 2 commits into from
Dec 1, 2012

Conversation

richardmiller-zz
Copy link
Contributor

No description provided.

@@ -105,7 +105,7 @@ Creating an ACL, and adding an ACE
// ... setup $form, and bind data

if ($form->isValid()) {
$entityManager = $this->get('doctrine.orm.default_entity_manager');
$entityManager = $this->getDoctrine()->getManager();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getManager() is wrong for the 2.0 branch. It has to be getEntityManager()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

weaverryan added a commit that referenced this pull request Dec 1, 2012
Updating way of getting entity manager to use base controller helper method
@weaverryan weaverryan merged commit 46ed478 into symfony:2.0 Dec 1, 2012
@weaverryan
Copy link
Member

Yep, nice catch! I've made the getEntityManger() -> getManager change after merging into the 2.1 docs as well, so we should be fully clean on that.

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

Successfully merging this pull request may close these issues.

3 participants