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

Doctrine\Common\Persistence\ObjectManager is deprecated #331

Closed
wants to merge 1 commit into from
Closed

Doctrine\Common\Persistence\ObjectManager is deprecated #331

wants to merge 1 commit into from

Conversation

pwnyprod
Copy link

... but you cant use the new Doctrine\Persistence\ObjectManager because of TypeHinting.

Found that on the FixtureBundle 3.3 in Symfony 5.

…use the new Doctrine\Persistence\ObjectManager because of TypeHinting.
@alcaeus
Copy link
Member

alcaeus commented Dec 13, 2019

There will be new releases for all affected projects to account for the deprecations. Thanks for bringing it up 👍

@@ -4,7 +4,8 @@

namespace Doctrine\Common\DataFixtures;

use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\Common\Persistence\ObjectManager as DeprecatedManager;
use Doctrine\Persistence\ObjectManager;
Copy link
Member

Choose a reason for hiding this comment

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

These are not 2 different classes, one is actually an alias to the other one, so there is no issue with using the new name in the signature because it's the same thing

@greg0ire
Copy link
Member

greg0ire commented Jan 4, 2020

Fixed in #333

@greg0ire greg0ire closed this Jan 4, 2020
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.

4 participants