Sfoglia il codice sorgente

[DoctrineBundle] Added memory and charset options

Added missing driver options (memory, used by sqlite; charset, used by oci) to
the supported configuration options supported by DoctrineBundle.
Brandon Turner 15 anni fa
parent
commit
1bc973e5a9

+ 1 - 1
src/Symfony/Bundle/DoctrineBundle/DependencyInjection/DoctrineExtension.php

@@ -125,7 +125,7 @@ class DoctrineExtension extends Extension
             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];
                 }

+ 6 - 0
src/Symfony/Bundle/DoctrineBundle/Resources/config/schema/doctrine-1.0.xsd

@@ -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">
@@ -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" />