From 0865181702428fd0f94bfe48c8606744ec191b93 Mon Sep 17 00:00:00 2001
From: mike <mike.simonson@gmail.com>
Date: Tue, 4 Apr 2017 22:15:02 +0200
Subject: [PATCH] Do not force an order of definition in the entity elements

---
 doctrine-mapping.xsd | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doctrine-mapping.xsd b/doctrine-mapping.xsd
index e220ab714..303a26027 100644
--- a/doctrine-mapping.xsd
+++ b/doctrine-mapping.xsd
@@ -167,7 +167,7 @@
   </xs:complexType>
 
   <xs:complexType name="entity">
-    <xs:sequence>
+    <xs:choice minOccurs="0" maxOccurs="unbounded">
       <xs:element name="cache" type="orm:cache" minOccurs="0" maxOccurs="1"/>
       <xs:element name="options" type="orm:options" minOccurs="0" />
       <xs:element name="indexes" type="orm:indexes" minOccurs="0"/>
@@ -189,7 +189,7 @@
       <xs:element name="association-overrides" type="orm:association-overrides" minOccurs="0" maxOccurs="unbounded" />
       <xs:element name="attribute-overrides" type="orm:attribute-overrides" minOccurs="0" maxOccurs="unbounded" />
       <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
-    </xs:sequence>
+    </xs:choice>
     <xs:attribute name="name" type="xs:string" use="required" />
     <xs:attribute name="table" type="orm:tablename" />
     <xs:attribute name="schema" type="xs:NMTOKEN" />