Permalink
Browse files

Put foreach loop back

This fixes the previous (broken) commit.
  • Loading branch information...
1 parent 49fea4f commit 43973081a5ebeb2c637ff7fe68e331f9606ad87a @jaspernbrouwer jaspernbrouwer committed Oct 4, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 library/Bisna/Doctrine/Container.php
@@ -553,10 +553,12 @@ private function startDBALConfiguration(array $config = array())
//DBAL Types configuration
$types = $config['types'];
- if (Type::hasType($name)) {
- Type::overrideType($name, $className);
- } else {
- Type::addType($name, $className);
+ foreach ($types as $name => $className) {
+ if (Type::hasType($name)) {
+ Type::overrideType($name, $className);
+ } else {
+ Type::addType($name, $className);
+ }
}
return $configuration;

0 comments on commit 4397308

Please sign in to comment.