Skip to content

Commit ed9c195

Browse files
authored
Merge pull request #192 from internalsystemerror/patch-1
Fix incorrect logic of interface mappings
2 parents 9ab29eb + 25f8331 commit ed9c195

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)