Skip to content

Commit

Permalink
Put foreach loop back
Browse files Browse the repository at this point in the history
This fixes the previous (broken) commit.
  • Loading branch information
jaspernbrouwer committed Oct 4, 2012
1 parent 49fea4f commit 4397308
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions library/Bisna/Doctrine/Container.php
Expand Up @@ -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;
Expand Down

0 comments on commit 4397308

Please sign in to comment.