Fixed PropelGeneratorAwareCommand to use the propel.ini file

This commit is contained in:
William DURAND 2012-04-16 11:14:23 +02:00
commit f68972f2b7
2 changed files with 30 additions and 3 deletions

View file

@ -362,8 +362,17 @@ EOT;
continue;
}
$pos = strpos($line, '=');
$properties[trim(substr($line, 0, $pos))] = trim(substr($line, $pos + 1));
$pos = strpos($line, '=');
$property = trim(substr($line, 0, $pos));
$value = trim(substr($line, $pos + 1));
if ("true" === $value) {
$value = true;
} else if ("false" === $value) {
$value = false;
}
$properties[$property] = $value;
}
return $properties;