Skip to content

Commit ce967a2

Browse files
Deprecate Doctrine\ORM\Proxy\Proxy and decouple a bit more from Doctrine\Common\Proxy
1 parent 7a9037e commit ce967a2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+76
-67
lines changed

UPGRADE.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Upgrade to 2.14
2+
3+
## Deprecated `Doctrine\ORM\Proxy\Proxy` interface.
4+
5+
Use `Doctrine\Persistence\Proxy` instead to check whether proxies are initialized.
6+
17
# Upgrade to 2.13
28

39
## Deprecated `QueryBuilder` methods and constants.

docs/en/cookbook/accessing-private-properties-of-the-same-class-from-different-instance.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ the proxy before use manually as follows:
2323
2424
<?php
2525
26-
use Doctrine\Common\Proxy\Proxy;
26+
use Doctrine\Persistence\Proxy;
2727
use Doctrine\ORM\Mapping as ORM;
2828
2929
/**

docs/en/reference/advanced-configuration.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ option that controls this behavior is:
214214
215215
Possible values for ``$mode`` are:
216216

217-
- ``Doctrine\Common\Proxy\AbstractProxyFactory::AUTOGENERATE_NEVER``
217+
- ``Doctrine\ORM\Proxy\ProxyFactory::AUTOGENERATE_NEVER``
218218

219219
Never autogenerate a proxy. You will need to generate the proxies
220220
manually, for this use the Doctrine Console like so:
@@ -230,17 +230,17 @@ methods were added to the entity class that are not yet in the proxy class.
230230
In such a case, simply use the Doctrine Console to (re)generate the
231231
proxy classes.
232232

233-
- ``Doctrine\Common\Proxy\AbstractProxyFactory::AUTOGENERATE_ALWAYS``
233+
- ``Doctrine\ORM\Proxy\ProxyFactory::AUTOGENERATE_ALWAYS``
234234

235235
Always generates a new proxy in every request and writes it to disk.
236236

237-
- ``Doctrine\Common\Proxy\AbstractProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS``
237+
- ``Doctrine\ORM\Proxy\ProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS``
238238

239239
Generate the proxy class when the proxy file does not exist.
240240
This strategy causes a file exists call whenever any proxy is
241241
used the first time in a request.
242242

243-
- ``Doctrine\Common\Proxy\AbstractProxyFactory::AUTOGENERATE_EVAL``
243+
- ``Doctrine\ORM\Proxy\ProxyFactory::AUTOGENERATE_EVAL``
244244

245245
Generate the proxy classes and evaluate them on the fly via eval(),
246246
avoiding writing the proxies to disk.

docs/en/reference/unitofwork.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ will still end up with the same reference:
3838
{
3939
$objectA = $this->entityManager->getReference('EntityName', 1);
4040
// check for proxyinterface
41-
$this->assertInstanceOf('Doctrine\ORM\Proxy\Proxy', $objectA);
41+
$this->assertInstanceOf('Doctrine\Persistence\Proxy', $objectA);
4242
4343
$objectB = $this->entityManager->find('EntityName', 1);
4444

docs/en/tutorials/getting-started.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,7 @@ Directory, it looks like:
15261526
/**
15271527
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
15281528
**/
1529-
class UserProxy extends \User implements \Doctrine\ORM\Proxy\Proxy
1529+
class UserProxy extends \User // ..
15301530
{
15311531
// .. lazy load code here
15321532

lib/Doctrine/ORM/Cache/DefaultQueryCache.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace Doctrine\ORM\Cache;
66

77
use Doctrine\Common\Collections\ArrayCollection;
8-
use Doctrine\Common\Proxy\Proxy;
98
use Doctrine\ORM\Cache;
109
use Doctrine\ORM\Cache\Exception\FeatureNotImplemented;
1110
use Doctrine\ORM\Cache\Exception\NonCacheableEntity;
@@ -17,6 +16,7 @@
1716
use Doctrine\ORM\Query;
1817
use Doctrine\ORM\Query\ResultSetMapping;
1918
use Doctrine\ORM\UnitOfWork;
19+
use Doctrine\Persistence\Proxy;
2020

2121
use function array_map;
2222
use function array_shift;

lib/Doctrine/ORM/Configuration.php

+4-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use Doctrine\Common\Cache\Psr6\CacheAdapter;
1414
use Doctrine\Common\Cache\Psr6\DoctrineProvider;
1515
use Doctrine\Common\Persistence\PersistentObject;
16-
use Doctrine\Common\Proxy\AbstractProxyFactory;
1716
use Doctrine\Deprecations\Deprecation;
1817
use Doctrine\ORM\Cache\CacheConfiguration;
1918
use Doctrine\ORM\Cache\Exception\CacheException;
@@ -92,18 +91,18 @@ public function getProxyDir()
9291
/**
9392
* Gets the strategy for automatically generating proxy classes.
9493
*
95-
* @return int Possible values are constants of Doctrine\Common\Proxy\AbstractProxyFactory.
94+
* @return int Possible values are constants of Doctrine\ORM\Proxy\ProxyFactory.
9695
* @psalm-return AutogenerateMode
9796
*/
9897
public function getAutoGenerateProxyClasses()
9998
{
100-
return $this->_attributes['autoGenerateProxyClasses'] ?? AbstractProxyFactory::AUTOGENERATE_ALWAYS;
99+
return $this->_attributes['autoGenerateProxyClasses'] ?? ProxyFactory::AUTOGENERATE_ALWAYS;
101100
}
102101

103102
/**
104103
* Sets the strategy for automatically generating proxy classes.
105104
*
106-
* @param bool|int $autoGenerate Possible values are constants of Doctrine\Common\Proxy\AbstractProxyFactory.
105+
* @param bool|int $autoGenerate Possible values are constants of Doctrine\ORM\Proxy\ProxyFactory.
107106
* @psalm-param bool|AutogenerateMode $autoGenerate
108107
* True is converted to AUTOGENERATE_ALWAYS, false to AUTOGENERATE_NEVER.
109108
*
@@ -572,7 +571,7 @@ public function ensureProductionSettings()
572571
throw QueryCacheUsesNonPersistentCache::fromDriver($queryCacheImpl);
573572
}
574573

575-
if ($this->getAutoGenerateProxyClasses() !== AbstractProxyFactory::AUTOGENERATE_NEVER) {
574+
if ($this->getAutoGenerateProxyClasses() !== ProxyFactory::AUTOGENERATE_NEVER) {
576575
throw ProxyClassesAlwaysRegenerating::create();
577576
}
578577

lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
namespace Doctrine\ORM\Internal\Hydration;
66

77
use Doctrine\Common\Collections\ArrayCollection;
8-
use Doctrine\Common\Proxy\Proxy;
98
use Doctrine\ORM\Mapping\ClassMetadata;
109
use Doctrine\ORM\PersistentCollection;
1110
use Doctrine\ORM\Query;
1211
use Doctrine\ORM\UnitOfWork;
12+
use Doctrine\Persistence\Proxy;
1313

1414
use function array_fill_keys;
1515
use function array_keys;

lib/Doctrine/ORM/Proxy/Proxy.php

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
/**
1010
* Interface for proxy classes.
11+
*
12+
* @deprecated 2.14. Use \Doctrine\Persistence\Proxy instead
1113
*/
1214
interface Proxy extends BaseProxy
1315
{

lib/Doctrine/ORM/Proxy/ProxyFactory.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/**
2121
* This factory is used to create proxy objects for entities at runtime.
2222
*
23-
* @psalm-type AutogenerateMode = AbstractProxyFactory::AUTOGENERATE_NEVER|AbstractProxyFactory::AUTOGENERATE_ALWAYS|AbstractProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS|AbstractProxyFactory::AUTOGENERATE_EVAL|AbstractProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS_OR_CHANGED
23+
* @psalm-type AutogenerateMode = ProxyFactory::AUTOGENERATE_NEVER|ProxyFactory::AUTOGENERATE_ALWAYS|ProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS|ProxyFactory::AUTOGENERATE_EVAL|ProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS_OR_CHANGED
2424
*/
2525
class ProxyFactory extends AbstractProxyFactory
2626
{
@@ -48,10 +48,10 @@ class ProxyFactory extends AbstractProxyFactory
4848
* @param string $proxyDir The directory to use for the proxy classes. It must exist.
4949
* @param string $proxyNs The namespace to use for the proxy classes.
5050
* @param bool|int $autoGenerate The strategy for automatically generating proxy classes. Possible
51-
* values are constants of {@see AbstractProxyFactory}.
51+
* values are constants of {@see ProxyFactory::AUTOGENERATE_*}.
5252
* @psalm-param bool|AutogenerateMode $autoGenerate
5353
*/
54-
public function __construct(EntityManagerInterface $em, $proxyDir, $proxyNs, $autoGenerate = AbstractProxyFactory::AUTOGENERATE_NEVER)
54+
public function __construct(EntityManagerInterface $em, $proxyDir, $proxyNs, $autoGenerate = self::AUTOGENERATE_NEVER)
5555
{
5656
$proxyGenerator = new ProxyGenerator($proxyDir, $proxyNs);
5757

lib/Doctrine/ORM/UnitOfWork.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Doctrine\Common\Collections\ArrayCollection;
99
use Doctrine\Common\Collections\Collection;
1010
use Doctrine\Common\EventManager;
11-
use Doctrine\Common\Proxy\Proxy;
11+
use Doctrine\Common\Proxy\Proxy as CommonProxy;
1212
use Doctrine\DBAL\Connections\PrimaryReadReplicaConnection;
1313
use Doctrine\DBAL\LockMode;
1414
use Doctrine\Deprecations\Deprecation;
@@ -40,6 +40,7 @@
4040
use Doctrine\Persistence\NotifyPropertyChanged;
4141
use Doctrine\Persistence\ObjectManagerAware;
4242
use Doctrine\Persistence\PropertyChangedListener;
43+
use Doctrine\Persistence\Proxy;
4344
use Exception;
4445
use InvalidArgumentException;
4546
use RuntimeException;
@@ -2701,7 +2702,9 @@ public function createEntity($className, array $data, &$hints = [])
27012702
}
27022703

27032704
if ($entity instanceof Proxy && ! $entity->__isInitialized()) {
2704-
$entity->__setInitialized(true);
2705+
if ($entity instanceof CommonProxy) {
2706+
$entity->__setInitialized(true);
2707+
}
27052708

27062709
if ($entity instanceof NotifyPropertyChanged) {
27072710
$entity->addPropertyChangedListener($this);

tests/Doctrine/Performance/LazyLoading/ProxyInitializationTimeBench.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
namespace Doctrine\Performance\LazyLoading;
66

7-
use Doctrine\Common\Proxy\Proxy;
87
use Doctrine\Performance\EntityManagerFactory;
98
use Doctrine\Performance\Mock\NonProxyLoadingEntityManager;
9+
use Doctrine\Persistence\Proxy;
1010
use Doctrine\Tests\Models\CMS\CmsEmployee;
1111
use Doctrine\Tests\Models\CMS\CmsUser;
1212

tests/Doctrine/Performance/LazyLoading/ProxyInstantiationTimeBench.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Doctrine\Performance\LazyLoading;
66

7-
use Doctrine\Common\Proxy\AbstractProxyFactory;
7+
use Doctrine\ORM\Proxy\ProxyFactory;
88
use Doctrine\Performance\EntityManagerFactory;
99
use Doctrine\Tests\Models\CMS\CmsEmployee;
1010
use Doctrine\Tests\Models\CMS\CmsUser;
@@ -13,7 +13,7 @@
1313
/** @BeforeMethods({"init"}) */
1414
final class ProxyInstantiationTimeBench
1515
{
16-
/** @var AbstractProxyFactory */
16+
/** @var ProxyFactory */
1717
private $proxyFactory;
1818

1919
public function init(): void

tests/Doctrine/Tests/ORM/ConfigurationTest.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Doctrine\Common\Cache\ArrayCache;
88
use Doctrine\Common\Cache\Cache;
99
use Doctrine\Common\Cache\Psr6\CacheAdapter;
10-
use Doctrine\Common\Proxy\AbstractProxyFactory;
1110
use Doctrine\Deprecations\PHPUnit\VerifyDeprecations;
1211
use Doctrine\ORM\Cache\CacheConfiguration;
1312
use Doctrine\ORM\Cache\Exception\MetadataCacheNotConfigured;
@@ -24,6 +23,7 @@
2423
use Doctrine\ORM\Mapping\NamingStrategy;
2524
use Doctrine\ORM\Mapping\PrePersist;
2625
use Doctrine\ORM\Mapping\QuoteStrategy;
26+
use Doctrine\ORM\Proxy\ProxyFactory;
2727
use Doctrine\ORM\Query\ResultSetMapping;
2828
use Doctrine\Persistence\Mapping\Driver\MappingDriver;
2929
use Doctrine\Persistence\ObjectRepository;
@@ -62,16 +62,16 @@ public function testSetGetProxyDir(): void
6262

6363
public function testSetGetAutoGenerateProxyClasses(): void
6464
{
65-
self::assertSame(AbstractProxyFactory::AUTOGENERATE_ALWAYS, $this->configuration->getAutoGenerateProxyClasses()); // defaults
65+
self::assertSame(ProxyFactory::AUTOGENERATE_ALWAYS, $this->configuration->getAutoGenerateProxyClasses()); // defaults
6666

6767
$this->configuration->setAutoGenerateProxyClasses(false);
68-
self::assertSame(AbstractProxyFactory::AUTOGENERATE_NEVER, $this->configuration->getAutoGenerateProxyClasses());
68+
self::assertSame(ProxyFactory::AUTOGENERATE_NEVER, $this->configuration->getAutoGenerateProxyClasses());
6969

7070
$this->configuration->setAutoGenerateProxyClasses(true);
71-
self::assertSame(AbstractProxyFactory::AUTOGENERATE_ALWAYS, $this->configuration->getAutoGenerateProxyClasses());
71+
self::assertSame(ProxyFactory::AUTOGENERATE_ALWAYS, $this->configuration->getAutoGenerateProxyClasses());
7272

73-
$this->configuration->setAutoGenerateProxyClasses(AbstractProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS);
74-
self::assertSame(AbstractProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS, $this->configuration->getAutoGenerateProxyClasses());
73+
$this->configuration->setAutoGenerateProxyClasses(ProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS);
74+
self::assertSame(ProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS, $this->configuration->getAutoGenerateProxyClasses());
7575
}
7676

7777
public function testSetGetProxyNamespace(): void
@@ -211,7 +211,7 @@ public function testAddGetNamedNativeQuery(): void
211211
*/
212212
protected function setProductionSettings(?string $skipCache = null): void
213213
{
214-
$this->configuration->setAutoGenerateProxyClasses(AbstractProxyFactory::AUTOGENERATE_NEVER);
214+
$this->configuration->setAutoGenerateProxyClasses(ProxyFactory::AUTOGENERATE_NEVER);
215215

216216
$cache = $this->createMock(Cache::class);
217217

@@ -295,7 +295,7 @@ public function testEnsureProductionSettingsLegacyMetadataArrayCache(): void
295295
public function testEnsureProductionSettingsAutoGenerateProxyClassesAlways(): void
296296
{
297297
$this->setProductionSettings();
298-
$this->configuration->setAutoGenerateProxyClasses(AbstractProxyFactory::AUTOGENERATE_ALWAYS);
298+
$this->configuration->setAutoGenerateProxyClasses(ProxyFactory::AUTOGENERATE_ALWAYS);
299299

300300
$this->expectException(ProxyClassesAlwaysRegenerating::class);
301301
$this->expectExceptionMessage('Proxy Classes are always regenerating.');
@@ -306,7 +306,7 @@ public function testEnsureProductionSettingsAutoGenerateProxyClassesAlways(): vo
306306
public function testEnsureProductionSettingsAutoGenerateProxyClassesFileNotExists(): void
307307
{
308308
$this->setProductionSettings();
309-
$this->configuration->setAutoGenerateProxyClasses(AbstractProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS);
309+
$this->configuration->setAutoGenerateProxyClasses(ProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS);
310310

311311
$this->expectException(ORMException::class);
312312
$this->expectExceptionMessage('Proxy Classes are always regenerating.');
@@ -317,7 +317,7 @@ public function testEnsureProductionSettingsAutoGenerateProxyClassesFileNotExist
317317
public function testEnsureProductionSettingsAutoGenerateProxyClassesEval(): void
318318
{
319319
$this->setProductionSettings();
320-
$this->configuration->setAutoGenerateProxyClasses(AbstractProxyFactory::AUTOGENERATE_EVAL);
320+
$this->configuration->setAutoGenerateProxyClasses(ProxyFactory::AUTOGENERATE_EVAL);
321321

322322
$this->expectException(ORMException::class);
323323
$this->expectExceptionMessage('Proxy Classes are always regenerating.');

tests/Doctrine/Tests/ORM/Functional/BasicFunctionalTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
use Doctrine\ORM\Mapping\ClassMetadata;
99
use Doctrine\ORM\ORMInvalidArgumentException;
1010
use Doctrine\ORM\PersistentCollection;
11-
use Doctrine\ORM\Proxy\Proxy;
1211
use Doctrine\ORM\Query;
1312
use Doctrine\ORM\UnitOfWork;
13+
use Doctrine\Persistence\Proxy;
1414
use Doctrine\Tests\IterableTester;
1515
use Doctrine\Tests\Models\CMS\CmsAddress;
1616
use Doctrine\Tests\Models\CMS\CmsArticle;

tests/Doctrine/Tests/ORM/Functional/ClassTableInheritanceTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use DateTime;
88
use Doctrine\Common\Collections\Criteria;
99
use Doctrine\ORM\PersistentCollection;
10-
use Doctrine\ORM\Proxy\Proxy;
10+
use Doctrine\Persistence\Proxy;
1111
use Doctrine\Tests\IterableTester;
1212
use Doctrine\Tests\Models\Company\CompanyAuction;
1313
use Doctrine\Tests\Models\Company\CompanyEmployee;

tests/Doctrine/Tests/ORM/Functional/DetachedEntityTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
88
use Doctrine\ORM\OptimisticLockException;
9-
use Doctrine\ORM\Proxy\Proxy;
9+
use Doctrine\Persistence\Proxy;
1010
use Doctrine\Tests\Models\CMS\CmsAddress;
1111
use Doctrine\Tests\Models\CMS\CmsArticle;
1212
use Doctrine\Tests\Models\CMS\CmsPhonenumber;

tests/Doctrine/Tests/ORM/Functional/MappedSuperclassTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Doctrine\Tests\ORM\Functional;
66

7-
use Doctrine\ORM\Proxy\Proxy;
7+
use Doctrine\Persistence\Proxy;
88
use Doctrine\Tests\Models\DirectoryTree\Directory;
99
use Doctrine\Tests\Models\DirectoryTree\File;
1010
use Doctrine\Tests\OrmFunctionalTestCase;

tests/Doctrine/Tests/ORM/Functional/MergeProxiesTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
use Doctrine\ORM\EntityManager;
1111
use Doctrine\ORM\EntityManagerInterface;
1212
use Doctrine\ORM\ORMSetup;
13-
use Doctrine\ORM\Proxy\Proxy;
1413
use Doctrine\ORM\Tools\SchemaTool;
14+
use Doctrine\Persistence\Proxy;
1515
use Doctrine\Tests\DbalExtensions\Connection;
1616
use Doctrine\Tests\DbalExtensions\QueryLog;
1717
use Doctrine\Tests\Models\Generic\DateTimeModel;

tests/Doctrine/Tests/ORM/Functional/OneToManyBidirectionalAssociationTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use Doctrine\Common\Collections\Collection;
88
use Doctrine\Common\Collections\Criteria;
9-
use Doctrine\ORM\Proxy\Proxy;
9+
use Doctrine\Persistence\Proxy;
1010
use Doctrine\Tests\Models\ECommerce\ECommerceFeature;
1111
use Doctrine\Tests\Models\ECommerce\ECommerceProduct;
1212
use Doctrine\Tests\OrmFunctionalTestCase;

tests/Doctrine/Tests/ORM/Functional/OneToOneBidirectionalAssociationTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Doctrine\Tests\ORM\Functional;
66

77
use Doctrine\ORM\Mapping\ClassMetadata;
8-
use Doctrine\ORM\Proxy\Proxy;
8+
use Doctrine\Persistence\Proxy;
99
use Doctrine\Tests\Models\ECommerce\ECommerceCart;
1010
use Doctrine\Tests\Models\ECommerce\ECommerceCustomer;
1111
use Doctrine\Tests\OrmFunctionalTestCase;

tests/Doctrine/Tests/ORM/Functional/OneToOneEagerLoadingTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Doctrine\ORM\Mapping\ManyToOne;
1515
use Doctrine\ORM\Mapping\OneToMany;
1616
use Doctrine\ORM\Mapping\OneToOne;
17-
use Doctrine\ORM\Proxy\Proxy;
17+
use Doctrine\Persistence\Proxy;
1818
use Doctrine\Tests\OrmFunctionalTestCase;
1919

2020
use function get_class;

tests/Doctrine/Tests/ORM/Functional/OneToOneSelfReferentialAssociationTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Doctrine\ORM\Mapping\Id;
1212
use Doctrine\ORM\Mapping\JoinColumn;
1313
use Doctrine\ORM\Mapping\OneToOne;
14-
use Doctrine\ORM\Proxy\Proxy;
14+
use Doctrine\Persistence\Proxy;
1515
use Doctrine\Tests\Models\ECommerce\ECommerceCustomer;
1616
use Doctrine\Tests\OrmFunctionalTestCase;
1717

tests/Doctrine/Tests/ORM/Functional/QueryTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
use Doctrine\DBAL\Logging\Middleware as LoggingMiddleware;
99
use Doctrine\ORM\Mapping\ClassMetadata;
1010
use Doctrine\ORM\NonUniqueResultException;
11-
use Doctrine\ORM\Proxy\Proxy;
1211
use Doctrine\ORM\Query;
1312
use Doctrine\ORM\Query\Parameter;
1413
use Doctrine\ORM\Query\QueryException;
1514
use Doctrine\ORM\UnexpectedResultException;
15+
use Doctrine\Persistence\Proxy;
1616
use Doctrine\Tests\IterableTester;
1717
use Doctrine\Tests\Models\CMS\CmsArticle;
1818
use Doctrine\Tests\Models\CMS\CmsPhonenumber;

0 commit comments

Comments
 (0)