Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Nov 17, 2023
1 parent cc63f87 commit 085b77e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Doctrine/Mapping/ClassMetadataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\Mapping\Driver\AnnotationDriver;
use Doctrine\ORM\Mapping\Driver\AttributeDriver;
use Doctrine\ORM\Proxy\ProxyFactory;
use function class_exists;
use function count;
use const PHP_VERSION_ID;
Expand Down Expand Up @@ -40,7 +39,7 @@ protected function initialize(): void

$config = new Configuration();
$config->setMetadataDriverImpl(count($drivers) === 1 ? $drivers[0] : new MappingDriverChain($drivers));
$config->setAutoGenerateProxyClasses(ProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS_OR_CHANGED);
$config->setAutoGenerateProxyClasses(true);
$config->setProxyDir($this->tmpDir);
$config->setProxyNamespace('__PHPStanDoctrine__\\Proxy');
$connection = DriverManager::getConnection([
Expand Down

0 comments on commit 085b77e

Please sign in to comment.