Skip to content

Commit

Permalink
[DoctrineBundle] Added memory and charset options
Browse files Browse the repository at this point in the history
Added missing driver options (memory, used by sqlite; charset, used by oci) to
the supported configuration options supported by DoctrineBundle.
  • Loading branch information
Brandon Turner authored and fabpot committed Jul 16, 2010
1 parent b828617 commit 1bc973e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Expand Up @@ -125,7 +125,7 @@ public function dbalLoad($config, ContainerBuilder $container)
if (isset($connection['options'])) {
$driverOptions['driverOptions'] = $connection['options'];
}
foreach (array('dbname', 'host', 'user', 'password', 'path', 'port', 'unix_socket') as $key) {
foreach (array('dbname', 'host', 'user', 'password', 'path', 'memory', 'port', 'unix_socket', 'charset') as $key) {
if (isset($connection[$key])) {
$driverOptions[$key] = $connection[$key];
}
Expand Down
Expand Up @@ -21,6 +21,9 @@
<xsd:attribute name="driver" type="xsd:string" />
<xsd:attribute name="options" type="xsd:string" />
<xsd:attribute name="path" type="xsd:string" />
<xsd:attribute name="unix_socket" type="xsd:string" />
<xsd:attribute name="memory" type="xsd:boolean" />
<xsd:attribute name="charset" type="xsd:string" />
</xsd:complexType>

<xsd:complexType name="connections">
Expand All @@ -39,6 +42,9 @@
<xsd:attribute name="driver" type="xsd:string" />
<xsd:attribute name="options" type="xsd:string" />
<xsd:attribute name="path" type="xsd:string" />
<xsd:attribute name="unix_socket" type="xsd:string" />
<xsd:attribute name="memory" type="xsd:boolean" />
<xsd:attribute name="charset" type="xsd:string" />
<xsd:attribute name="configuration_class" type="xsd:string" />
<xsd:attribute name="event_manager_class" type="xsd:string" />
<xsd:attribute name="wrapper_class" type="xsd:string" />
Expand Down

0 comments on commit 1bc973e

Please sign in to comment.