Skip to content

Commit cc15cbb

Browse files
committed
make doctrine mappings compiler pass exception message more understandable
1 parent d703b8e commit cc15cbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/CompilerPass/RegisterMappingsPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ private function getManagerName(ContainerBuilder $container)
231231
}
232232
}
233233

234-
throw new ParameterNotFoundException('None of the managerParameters resulted in a valid name');
234+
throw new ParameterNotFoundException('Could not determine the Doctrine manager. Either Doctrine is not configured or a bundle is misconfigured.');
235235
}
236236

237237
/**

0 commit comments

Comments
 (0)