|
13 | 13 | use Doctrine\Common\Cache\Psr6\CacheAdapter; |
14 | 14 | use Doctrine\Common\Cache\Psr6\DoctrineProvider; |
15 | 15 | use Doctrine\Common\Persistence\PersistentObject; |
16 | | -use Doctrine\Common\Proxy\AbstractProxyFactory; |
17 | 16 | use Doctrine\Deprecations\Deprecation; |
18 | 17 | use Doctrine\ORM\Cache\CacheConfiguration; |
19 | 18 | use Doctrine\ORM\Cache\Exception\CacheException; |
@@ -92,18 +91,18 @@ public function getProxyDir() |
92 | 91 | /** |
93 | 92 | * Gets the strategy for automatically generating proxy classes. |
94 | 93 | * |
95 | | - * @return int Possible values are constants of Doctrine\Common\Proxy\AbstractProxyFactory. |
| 94 | + * @return int Possible values are constants of Doctrine\ORM\Proxy\ProxyFactory. |
96 | 95 | * @psalm-return AutogenerateMode |
97 | 96 | */ |
98 | 97 | public function getAutoGenerateProxyClasses() |
99 | 98 | { |
100 | | - return $this->_attributes['autoGenerateProxyClasses'] ?? AbstractProxyFactory::AUTOGENERATE_ALWAYS; |
| 99 | + return $this->_attributes['autoGenerateProxyClasses'] ?? ProxyFactory::AUTOGENERATE_ALWAYS; |
101 | 100 | } |
102 | 101 |
|
103 | 102 | /** |
104 | 103 | * Sets the strategy for automatically generating proxy classes. |
105 | 104 | * |
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. |
107 | 106 | * @psalm-param bool|AutogenerateMode $autoGenerate |
108 | 107 | * True is converted to AUTOGENERATE_ALWAYS, false to AUTOGENERATE_NEVER. |
109 | 108 | * |
@@ -572,7 +571,7 @@ public function ensureProductionSettings() |
572 | 571 | throw QueryCacheUsesNonPersistentCache::fromDriver($queryCacheImpl); |
573 | 572 | } |
574 | 573 |
|
575 | | - if ($this->getAutoGenerateProxyClasses() !== AbstractProxyFactory::AUTOGENERATE_NEVER) { |
| 574 | + if ($this->getAutoGenerateProxyClasses() !== ProxyFactory::AUTOGENERATE_NEVER) { |
576 | 575 | throw ProxyClassesAlwaysRegenerating::create(); |
577 | 576 | } |
578 | 577 |
|
|
0 commit comments