File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 10
10
use Doctrine \ORM \Mapping \ClassMetadata ;
11
11
use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
12
12
use Doctrine \ORM \Mapping \Driver \AttributeDriver ;
13
- use Doctrine \ORM \Proxy \ProxyFactory ;
14
13
use function class_exists ;
15
14
use function count ;
16
15
use const PHP_VERSION_ID ;
@@ -40,7 +39,7 @@ protected function initialize(): void
40
39
41
40
$ config = new Configuration ();
42
41
$ config ->setMetadataDriverImpl (count ($ drivers ) === 1 ? $ drivers [0 ] : new MappingDriverChain ($ drivers ));
43
- $ config ->setAutoGenerateProxyClasses (ProxyFactory:: AUTOGENERATE_FILE_NOT_EXISTS_OR_CHANGED );
42
+ $ config ->setAutoGenerateProxyClasses (true );
44
43
$ config ->setProxyDir ($ this ->tmpDir );
45
44
$ config ->setProxyNamespace ('__PHPStanDoctrine__ \\Proxy ' );
46
45
$ connection = DriverManager::getConnection ([
You can’t perform that action at this time.
0 commit comments