Sample databases.yml has setting:
persistent: true
So, $options is set to ATTR_PERSISTENT => true
However, in Propel.php (propel/runtime/lib/Propel.php), the code reads:
private static function processDriverOptions($source, &$write_to)
{
foreach ($source as $option => $optiondata) {
...
...
$value = $optiondata['value'];
...
...
}
}
This sets the $value to null (as $optiondata is true, but
$optiondata['value'] evaluates to null).
So, for it to work, in databases.yml, persistence should be set as:
persistent: {value: true}
I assume this has been used in several installations already. So, I
fixed the code to accept both types of definitions:
persistent: {value: true}
and
persistent: true
Sample databases.yml has setting: persistent: true So, $options is set to ATTR_PERSISTENT => true However, in Propel.php (propel/runtime/lib/Propel.php), the code reads: private static function processDriverOptions($source, &$write_to) { foreach ($source as $option => $optiondata) { ... ...
$value = $optiondata['value']; ... ... } } This sets the $value to null (as $optiondata is true, but $optiondata['value'] evaluates to null).
So, for it to work, in databases.yml, persistence should be set as: persistent: {value: true}
I assume this has been used in several installations already. So, I fixed the code to accept both types of definitions: persistent: {value: true} and persistent: true