propelorm/Propel2 — pull request #74 by fzaninotto (2011-11-25 21:39:52+00:00)
Title: Fix regression introduced in bec8a587a9ec5bc0d2d96e35c729a2adee44187a.

Closes #73.

The problem came from the refactoring of `Propel::initConnection()` into
`ConnectionFactory::create()`. In the process of moving the code, I
inadvertently removed the line saying:

```
// in old Propel.php, line 575
$value = $optiondata['value'];
```

The generated configuration array used to look like

```
array (
'classname' => '\\Propel\\Runtime\\Connection\\DebugPDO',
'dsn' => 'mysql:dbname=test',
'options' =>
array (
'ATTR_PERSISTENT' => array('value' => false),
),
```

Which explained why `Propel::initConnection()` did that. So instead of
reading the code from line 575, I changed the generated conf so that it
looks like:

```
array (
'classname' => '\\Propel\\Runtime\\Connection\\DebugPDO',
'dsn' => 'mysql:dbname=test',
'options' =>
array (
'ATTR_PERSISTENT' => false,
),
```

Which makes more sense.