-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdoctrine-orm-odm-adapter-mapping.xsd
55 lines (46 loc) · 2.06 KB
/
doctrine-orm-odm-adapter-mapping.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:annotation>
<xs:documentation><![CDATA[
This is the XML Schema for the ORM-ODM-Adapter
mapping.
]]></xs:documentation>
</xs:annotation>
<xs:element name="doctrine-mapping">
<xs:complexType>
<xs:choice>
<xs:element name="object-adapter" type="adapter" minOccurs="0" maxOccurs="unbounded" />
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
</xs:choice>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>
<xs:complexType name="adapter">
<xs:choice>
<xs:element name="reference-phpcr" type="reference" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="reference-dbal-orm" type="reference" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
<xs:attribute name="name" type="xs:string" />
</xs:complexType>
<xs:complexType name="reference">
<xs:choice>
<xs:element name="common-field" type="common-field" minOccurs="0" maxOccurs="unbounded" />
</xs:choice>
<xs:attribute name="target-object" type="xs:string" default="null" />
<xs:attribute name="referenced-by" type="xs:string" use="required" />
<xs:attribute name="inversed-by" type="xs:string" use="required" />
<xs:attribute name="manager" type="xs:string" default="default" />
</xs:complexType>
<xs:complexType name="common-field">
<xs:attribute name="referenced-by" type="xs:string" use="required" />
<xs:attribute name="inversed-by" type="xs:string" use="required" />
<xs:attribute name="type" type="sync-type" default="from-reference" />
</xs:complexType>
<xs:simpleType name="sync-type">
<xs:restriction>
<xs:enumeration value="to-reference" />
<xs:enumeration value="from-reference" />
</xs:restriction>
</xs:simpleType>
</xs:schema>