Permalink
Browse files

fixed overriding bundle models

  • Loading branch information...
1 parent 2ae0124 commit 36e2ff4cc43989abbb3bd2f84cd7909c0f39d5b9 @pablodip pablodip committed Sep 18, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 Command/GenerateCommand.php
@@ -98,7 +98,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
$configClass['bundle_dir'] = $bundle->getPath();
if (isset($configClasses[$class])) {
- $configClasses[$class] = Util::arrayDeepMerge($configClasses[$class], $configClass);
+ $previousConfigClass = $configClasses[$class];
+ unset($configClasses[$class]);
+ $configClasses[$class] = Util::arrayDeepMerge($previousConfigClass, $configClass);
} else {
$configClasses[$class] = $configClass;
}

0 comments on commit 36e2ff4

Please sign in to comment.