Permalink
Browse files

[2.0] DDC-195 - Updated XSD Schema

  • Loading branch information...
1 parent eb00a3b commit 35d795b25f8e0ed205b1a81225a0bd04af0502ae beberlei committed Feb 26, 2010
Showing with 13 additions and 2 deletions.
  1. +13 −2 doctrine-mapping.xsd
View
@@ -210,28 +210,39 @@
<xs:attribute name="schema" type="xs:NMTOKEN" />
</xs:complexType>
+ <xs:complexType name="order-by">
+ <xs:sequence>
+ <xs:element name="order-by-field" type="orm:order-by-field" minOccurs="1" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="order-by-field">
+ <xs:attribute name="field" type="XS:NMTOKEN" use="required" />
+ <xs:attribute name="direction" type="XS:NMTOKEN" default="ASC" />
+ </xs:complexType>
+
<xs:complexType name="many-to-many">
<xs:sequence>
<xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
<xs:element name="join-table" type="orm:join-table" minOccurs="0" />
+ <xs:element name="order-by" type="orm:order-by" minOccurs="0" />
</xs:sequence>
<xs:attribute name="target-entity" type="xs:NMTOKEN" use="required" />
<xs:attribute name="field" type="xs:NMTOKEN" use="required" />
<xs:attribute name="mapped-by" type="xs:NMTOKEN" />
<xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
- <xs:attribute name="order-by" type="xs:string" />
</xs:complexType>
<xs:complexType name="one-to-many">
<xs:sequence>
<xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
+ <xs:element name="order-by" type="orm:order-by" minOccurs="0" />
</xs:sequence>
<xs:attribute name="target-entity" type="xs:NMTOKEN" use="required" />
<xs:attribute name="mapped-by" type="xs:NMTOKEN" />
<xs:attribute name="field" type="xs:NMTOKEN" use="required" />
<xs:attribute name="orphan-removal" type="xs:boolean" default="false" />
<xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
- <xs:attribute name="order-by" type="xs:string" />
</xs:complexType>
<xs:complexType name="many-to-one">

0 comments on commit 35d795b

Please sign in to comment.