diff --git a/DependencyInjection/Compiler/AddPropelTagPass.php b/DependencyInjection/Compiler/AddPropelTagPass.php index 8484b4e..b74de5f 100644 --- a/DependencyInjection/Compiler/AddPropelTagPass.php +++ b/DependencyInjection/Compiler/AddPropelTagPass.php @@ -51,7 +51,10 @@ protected function getPropelModels(ContainerBuilder $container) $path = preg_replace('/(.+)\.php/', '$1', $path); $path = str_replace('/', '\\', $path); - $classes[] = $path; + $base = str_replace('Propel', 'Propel\\Base', $path); + if (class_exists($base)) { + $classes[] = $path; + } } return $classes;