We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6e90e4a + 55127a2 commit 2817063Copy full SHA for 2817063
lib/database/sfDatabaseManager.class.php
@@ -67,10 +67,14 @@ public function loadConfiguration()
67
{
68
if (!empty($_SERVER['DOCTRINE_DSN']))
69
70
- $databases = array('doctrine' => new sfDoctrineDatabase(array(
+ $parameters = array(
71
'name' => 'doctrine',
72
'dsn' => $_SERVER['DOCTRINE_DSN'],
73
- )));
+ );
74
+ if (isset($this->configuration->doctrineConnectionCharset)) {
75
+ $parameters['encoding'] = $this->configuration->doctrineConnectionCharset;
76
+ }
77
+ $databases = array('doctrine' => new sfDoctrineDatabase($parameters));
78
}
79
elseif ($this->configuration instanceof sfApplicationConfiguration)
80
0 commit comments