Skip to content

Commit

Permalink
Stop using deprecated Doctrine\Common\Persistence\...
Browse files Browse the repository at this point in the history
  • Loading branch information
RiKap authored and f3l1x committed Jun 2, 2020
1 parent e104974 commit 05bba6f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .phpstorm.meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
override(\Doctrine\ORM\EntityManagerInterface::getReference(0), map([
'' => '@',
]));
override(\Doctrine\Common\Persistence\ObjectManager::getRepository(0), map([
override(\Doctrine\Persistence\ObjectManager::getRepository(0), map([
'' => '@',
]));
}
1 change: 0 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
parameters:
ignoreErrors:
# We will replace it once, for sure
- '#Fetching class constant .+ of deprecated class Doctrine\\Common\\Proxy\\AbstractProxyFactory.+#'
- '#Fetching class constant .+ of deprecated class Doctrine\\ORM\\Tools\\Console\\Command\\(GenerateEntities|GenerateRepositories)Command.+#'
- '#Fetching class constant .+ of deprecated class Doctrine\\ORM\\Proxy\\Proxy.+#'
2 changes: 1 addition & 1 deletion src/DI/AbstractExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Nettrine\ORM\DI;

use Contributte\DI\Extension\CompilerExtension;
use Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain;
use Doctrine\ORM\Configuration;
use Doctrine\Persistence\Mapping\Driver\MappingDriverChain;
use Nette\DI\Definitions\ServiceDefinition;
use Nettrine\ORM\Exception\Logical\InvalidStateException;
use stdClass;
Expand Down
2 changes: 1 addition & 1 deletion src/DI/OrmAnnotationsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Nettrine\ORM\DI;

use Doctrine\Common\Persistence\Mapping\Driver\MappingDriver;
use Doctrine\Persistence\Mapping\Driver\MappingDriver;
use Nette\Schema\Expect;
use Nette\Schema\Schema;
use Nettrine\ORM\Mapping\AnnotationDriver;
Expand Down
2 changes: 1 addition & 1 deletion src/DI/OrmExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Nettrine\ORM\DI;

use Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain;
use Doctrine\Common\Proxy\AbstractProxyFactory;
use Doctrine\DBAL\Connection;
use Doctrine\ORM\Configuration;
use Doctrine\ORM\EntityManager as DoctrineEntityManager;
use Doctrine\ORM\Mapping\UnderscoreNamingStrategy;
use Doctrine\Persistence\Mapping\Driver\MappingDriverChain;
use Nette\DI\Definitions\Statement;
use Nette\DI\Helpers;
use Nette\Schema\Expect;
Expand Down
4 changes: 2 additions & 2 deletions src/ManagerRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Nettrine\ORM;

use Doctrine\Common\Persistence\AbstractManagerRegistry;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\DBAL\Connection;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\ORMException;
use Doctrine\ORM\Proxy\Proxy;
use Doctrine\Persistence\AbstractManagerRegistry;
use Doctrine\Persistence\ObjectManager;
use Nette\DI\Container;

class ManagerRegistry extends AbstractManagerRegistry
Expand Down

0 comments on commit 05bba6f

Please sign in to comment.