From 32f92cc37bf91a2525e10e0b1e8ddfeef7964537 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Mon, 10 Aug 2015 12:05:42 +0200 Subject: [PATCH] make doctrine mappings compiler pass exception message more understandable --- .../DependencyInjection/CompilerPass/RegisterMappingsPass.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php index 4c9d15ac67..64fb8e9da6 100644 --- a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php +++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php @@ -231,7 +231,7 @@ abstract class RegisterMappingsPass implements CompilerPassInterface } } - throw new ParameterNotFoundException('None of the managerParameters resulted in a valid name'); + throw new ParameterNotFoundException('Could not determine the Doctrine manager. Either Doctrine is not configured or a bundle is misconfigured.'); } /**