Skip to content
Browse files

Fixed configuration for all:propel:param:persistent in database.yml a…

…nd documentation for database.yml

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}
  • Loading branch information...
1 parent 5e30c67 commit 0f0e45cb153b01f8069cf632a12d7b62e9219365 @pravindahal pravindahal committed Sep 12, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 config/skeleton/config/databases.yml
  2. +1 −1 doc/database.md
View
2 config/skeleton/config/databases.yml
@@ -28,5 +28,5 @@ all:
username: root
password:
encoding: utf8
- persistent: true
+ persistent: {value: true}
pooling: true
View
2 doc/database.md
@@ -18,7 +18,7 @@ Symfony is to specify slave servers for each connection in config/databases.yml
password:
encoding: utf8
- persistent: true
+ persistent: {value: true}
pooling: true
slaves:

0 comments on commit 0f0e45c

Please sign in to comment.
Something went wrong with that request. Please try again.