Skip to content

Commit 085b77e

Browse files
committed
Fix
1 parent cc63f87 commit 085b77e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Doctrine/Mapping/ClassMetadataFactory.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use Doctrine\ORM\Mapping\ClassMetadata;
1111
use Doctrine\ORM\Mapping\Driver\AnnotationDriver;
1212
use Doctrine\ORM\Mapping\Driver\AttributeDriver;
13-
use Doctrine\ORM\Proxy\ProxyFactory;
1413
use function class_exists;
1514
use function count;
1615
use const PHP_VERSION_ID;
@@ -40,7 +39,7 @@ protected function initialize(): void
4039

4140
$config = new Configuration();
4241
$config->setMetadataDriverImpl(count($drivers) === 1 ? $drivers[0] : new MappingDriverChain($drivers));
43-
$config->setAutoGenerateProxyClasses(ProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS_OR_CHANGED);
42+
$config->setAutoGenerateProxyClasses(true);
4443
$config->setProxyDir($this->tmpDir);
4544
$config->setProxyNamespace('__PHPStanDoctrine__\\Proxy');
4645
$connection = DriverManager::getConnection([

0 commit comments

Comments
 (0)