File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ steps of configuration.
29
29
30
30
$config = new Configuration;
31
31
$config->setMetadataCache($metadataCache);
32
- $driverImpl = new AttributeDriver(['/path/to/lib/MyProject/Entities']);
32
+ $driverImpl = new AttributeDriver(['/path/to/lib/MyProject/Entities'], true );
33
33
$config->setMetadataDriverImpl($driverImpl);
34
34
$config->setQueryCache($queryCache);
35
35
$config->setProxyDir('/path/to/myproject/lib/MyProject/Proxies');
@@ -134,7 +134,7 @@ The attribute driver can be injected in the ``Doctrine\ORM\Configuration``:
134
134
<?php
135
135
use Doctrine\ORM\Mapping\Driver\AttributeDriver;
136
136
137
- $driverImpl = new AttributeDriver(['/path/to/lib/MyProject/Entities']);
137
+ $driverImpl = new AttributeDriver(['/path/to/lib/MyProject/Entities'], true );
138
138
$config->setMetadataDriverImpl($driverImpl);
139
139
140
140
The path information to the entities is required for the attribute
Original file line number Diff line number Diff line change @@ -101,10 +101,11 @@ public static function createAttributeMetadataConfiguration(
101
101
array $ paths ,
102
102
bool $ isDevMode = false ,
103
103
?string $ proxyDir = null ,
104
- ?CacheItemPoolInterface $ cache = null
104
+ ?CacheItemPoolInterface $ cache = null ,
105
+ bool $ reportFieldsWhereDeclared = false
105
106
): Configuration {
106
107
$ config = self ::createConfiguration ($ isDevMode , $ proxyDir , $ cache );
107
- $ config ->setMetadataDriverImpl (new AttributeDriver ($ paths ));
108
+ $ config ->setMetadataDriverImpl (new AttributeDriver ($ paths, $ reportFieldsWhereDeclared ));
108
109
109
110
return $ config ;
110
111
}
You can’t perform that action at this time.
0 commit comments