Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Put foreach loop back

This fixes the previous (broken) commit.
  • Loading branch information...
commit 43973081a5ebeb2c637ff7fe68e331f9606ad87a 1 parent 49fea4f
@jaspernbrouwer jaspernbrouwer authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 library/Bisna/Doctrine/Container.php
View
10 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;
Please sign in to comment.
Something went wrong with that request. Please try again.