Skip to content

Commit e197d2f

Browse files
author
Gary Lockett
authored
Fix incorrect logic
The following commit 64ae94b introduced an inversion of the logic for this condition: ``` !empty($interfaceMappings) ``` became: ``` !$interfaceMappings ``` The result means that the ```ResolveTargetEntityListener``` doctrine.xml config is never generated when interfaces are used.
1 parent 9ab29eb commit e197d2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TypesGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ public function generate(array $config): void
438438
}
439439
}
440440

441-
if (!$interfaceMappings && $config['doctrine']['resolveTargetEntityConfigPath']) {
441+
if (count($interfaceMappings) > 0 && $config['doctrine']['resolveTargetEntityConfigPath']) {
442442
$file = $config['output'].'/'.$config['doctrine']['resolveTargetEntityConfigPath'];
443443
$dir = \dirname($file);
444444
if (!file_exists($dir)) {

0 commit comments

Comments
 (0)