瀏覽代碼

Updated the XSD schema

Christophe Coevoet 14 年之前
父節點
當前提交
0d0f053682
共有 1 個文件被更改,包括 11 次插入35 次删除
  1. 11 35
      src/Symfony/Bundle/DoctrineBundle/Resources/config/schema/doctrine-1.0.xsd

+ 11 - 35
src/Symfony/Bundle/DoctrineBundle/Resources/config/schema/doctrine-1.0.xsd

@@ -33,25 +33,13 @@
     </xsd:attributeGroup>
 
     <xsd:complexType name="dbal">
-        <xsd:all>
-            <xsd:element name="connections" type="connections" minOccurs="0" maxOccurs="1" />
-            <xsd:element name="types" type="types" minOccurs="0" maxOccurs="1" />
-        </xsd:all>
-
-        <xsd:attribute name="default-connection" type="xsd:string" />
-        <xsd:attributeGroup ref="connection-config" />
-    </xsd:complexType>
-
-    <xsd:complexType name="connections">
-        <xsd:choice minOccurs="1" maxOccurs="unbounded">
+        <xsd:choice minOccurs="0" maxOccurs="unbounded">
             <xsd:element name="connection" type="connection" />
-        </xsd:choice>
-    </xsd:complexType>
-
-    <xsd:complexType name="types">
-        <xsd:choice minOccurs="1" maxOccurs="unbounded">
             <xsd:element name="type" type="type" />
         </xsd:choice>
+
+        <xsd:attribute name="default-connection" type="xsd:string" />
+        <xsd:attributeGroup ref="connection-config" />
     </xsd:complexType>
 
     <xsd:complexType name="type">
@@ -73,18 +61,12 @@
         <xsd:attribute name="is-bundle" type="xsd:boolean" />
     </xsd:complexType>
 
-    <xsd:complexType name="mappings">
-        <xsd:choice minOccurs="1" maxOccurs="unbounded">
-            <xsd:element name="mapping" type="mapping" />
-        </xsd:choice>
-    </xsd:complexType>
-
     <xsd:complexType name="orm">
-        <xsd:all>
-            <xsd:element name="entity-managers" type="entity_managers" minOccurs="0" maxOccurs="1" />
-            <xsd:element name="mappings" type="mappings" minOccurs="0" maxOccurs="1" />
+        <xsd:choice minOccurs="0" maxOccurs="unbounded">
+            <xsd:element name="entity-manager" type="entity_manager" />
+            <xsd:element name="mapping" type="mapping" />
             <xsd:element name="metadata-cache-driver" type="metadata_cache_driver" minOccurs="0" maxOccurs="1" />
-        </xsd:all>
+        </xsd:choice>
 
         <xsd:attribute name="default-entity-manager" type="xsd:string" />
         <xsd:attribute name="default-connection" type="xsd:string" />
@@ -106,17 +88,11 @@
         <xsd:attribute name="type" type="xsd:string" />
     </xsd:complexType>
 
-    <xsd:complexType name="entity_managers">
-        <xsd:choice minOccurs="1" maxOccurs="unbounded">
-            <xsd:element name="entity-manager" type="entity_manager" />
-        </xsd:choice>
-    </xsd:complexType>
-
     <xsd:complexType name="entity_manager">
-        <xsd:all>
-            <xsd:element name="mappings" type="mappings" minOccurs="0" maxOccurs="1" />
+        <xsd:choice minOccurs="0" maxOccurs="unbounded">
+            <xsd:element name="mapping" type="mapping" />
             <xsd:element name="metadata-cache-driver" type="metadata_cache_driver" minOccurs="0" maxOccurs="1" />
-        </xsd:all>
+        </xsd:choice>
 
         <xsd:attribute name="connection" type="xsd:string" />
         <xsd:attribute name="name" type="xsd:string" />