|
@@ -0,0 +1,148 @@
|
|
1
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
|
|
3
|
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
4
|
+ targetNamespace="http://gediminasm.org/schemas/orm/doctrine-extensions-mapping"
|
|
5
|
+ xmlns:gedmo="http://gediminasm.org/schemas/orm/doctrine-extensions-mapping"
|
|
6
|
+ elementFormDefault="qualified">
|
|
7
|
+
|
|
8
|
+ <xs:annotation>
|
|
9
|
+ <xs:documentation><![CDATA[
|
|
10
|
+ This is the XML Schema for the object/relational
|
|
11
|
+ mapping file used by the Doctrine Extensions by Gedmo
|
|
12
|
+ extensions
|
|
13
|
+ Doctrine component version support: 2.2.x
|
|
14
|
+ ]]></xs:documentation>
|
|
15
|
+ </xs:annotation>
|
|
16
|
+
|
|
17
|
+<!--
|
|
18
|
+It would be nice if we could force the gedmo with only necessary elements into each of doctrine elements.
|
|
19
|
+Patches that do that are more than welcome.
|
|
20
|
+Please note, that marking e.g filed element in xml document with xsi:type is not an option as we need to allow other
|
|
21
|
+people to push their own additional attributes/elements into the same field element and they should not extend our schema
|
|
22
|
+-->
|
|
23
|
+
|
|
24
|
+ <!-- entity -->
|
|
25
|
+ <xs:element name="translation" type="gedmo:translation"/>
|
|
26
|
+ <xs:element name="tree" type="gedmo:tree"/>
|
|
27
|
+ <xs:element name="tree-closure" type="gedmo:tree-closure"/>
|
|
28
|
+ <xs:element name="loggable" type="gedmo:loggable"/>
|
|
29
|
+ <xs:element name="soft-deleteable" type="gedmo:soft-deleteable"/>
|
|
30
|
+ <xs:element name="uploadable" type="gedmo:uploadable"/>
|
|
31
|
+ <!-- field -->
|
|
32
|
+ <xs:element name="slug" type="gedmo:slug"/>
|
|
33
|
+ <xs:element name="translatable" type="gedmo:translatable"/>
|
|
34
|
+ <xs:element name="timestampable" type="gedmo:timestampable"/>
|
|
35
|
+ <xs:element name="versioned" type="gedmo:emptyType"/>
|
|
36
|
+ <xs:element name="tree-left" type="gedmo:emptyType"/>
|
|
37
|
+ <xs:element name="tree-right" type="gedmo:emptyType"/>
|
|
38
|
+ <xs:element name="tree-level" type="gedmo:emptyType"/>
|
|
39
|
+ <xs:element name="tree-root" type="gedmo:emptyType"/>
|
|
40
|
+ <xs:element name="tree-parent" type="gedmo:emptyType"/>
|
|
41
|
+ <xs:element name="tree-path-source" type="gedmo:emptyType"/>
|
|
42
|
+ <xs:element name="tree-lock-time" type="gedmo:emptyType"/>
|
|
43
|
+ <xs:element name="sortable-group" type="gedmo:emptyType"/>
|
|
44
|
+ <xs:element name="sortable-position" type="gedmo:emptyType"/>
|
|
45
|
+ <xs:element name="uploadable-file-mime-type" type="gedmo:emptyType"/>
|
|
46
|
+ <xs:element name="uploadable-file-path" type="gedmo:emptyType"/>
|
|
47
|
+ <xs:element name="uploadable-file-size" type="gedmo:emptyType"/>
|
|
48
|
+
|
|
49
|
+ <xs:complexType name="translation">
|
|
50
|
+ <xs:attribute name="entity" type="xs:string" use="optional" />
|
|
51
|
+ <xs:attribute name="locale" type="xs:string" use="optional" />
|
|
52
|
+ <xs:attribute name="language" type="xs:string" use="optional" />
|
|
53
|
+ </xs:complexType>
|
|
54
|
+
|
|
55
|
+ <xs:complexType name="tree">
|
|
56
|
+ <xs:attribute name="type" type="gedmo:tree-type" default="nested" />
|
|
57
|
+ <xs:attribute name="activate-locking" type="xs:boolean" default="false" />
|
|
58
|
+ <xs:attribute name="locking-timeout" type="xs:integer" default="3" />
|
|
59
|
+ </xs:complexType>
|
|
60
|
+
|
|
61
|
+ <xs:complexType name="tree-closure">
|
|
62
|
+ <xs:attribute name="class" type="xs:string" use="required" />
|
|
63
|
+ </xs:complexType>
|
|
64
|
+
|
|
65
|
+ <xs:complexType name="tree-path">
|
|
66
|
+ <xs:attribute name="separator" type="xs:string" use="optional" default="|" />
|
|
67
|
+ </xs:complexType>
|
|
68
|
+
|
|
69
|
+ <xs:complexType name="loggable">
|
|
70
|
+ <xs:attribute name="log-entry-class" type="xs:string" use="optional" />
|
|
71
|
+ </xs:complexType>
|
|
72
|
+
|
|
73
|
+ <xs:complexType name="slug">
|
|
74
|
+ <xs:sequence>
|
|
75
|
+ <xs:element name="handler" type="gedmo:handler" minOccurs="0" maxOccurs="unbounded"/>
|
|
76
|
+ </xs:sequence>
|
|
77
|
+ <xs:attribute name="fields" type="xs:string" use="required"/>
|
|
78
|
+ <xs:attribute name="unique" type="xs:boolean" use="optional" />
|
|
79
|
+ <xs:attribute name="updatable" type="xs:boolean" use="optional" />
|
|
80
|
+ <xs:attribute name="separator" type="xs:string" use="optional" />
|
|
81
|
+ <xs:attribute name="style" type="gedmo:slug-style" use="optional" />
|
|
82
|
+ </xs:complexType>
|
|
83
|
+
|
|
84
|
+ <xs:complexType name="soft-deleteable">
|
|
85
|
+ <xs:attribute name="field-name" type="xs:string" use="required" />
|
|
86
|
+ </xs:complexType>
|
|
87
|
+
|
|
88
|
+ <xs:complexType name="handler">
|
|
89
|
+ <xs:sequence>
|
|
90
|
+ <xs:element name="handler-option" type="gedmo:handler-option" minOccurs="0" maxOccurs="unbounded"/>
|
|
91
|
+ </xs:sequence>
|
|
92
|
+ <xs:attribute name="class" type="xs:string" use="required"/>
|
|
93
|
+ </xs:complexType>
|
|
94
|
+
|
|
95
|
+ <xs:complexType name="handler-option">
|
|
96
|
+ <xs:attribute name="name" type="xs:string" use="required"/>
|
|
97
|
+ <xs:attribute name="value" type="xs:string" use="required"/>
|
|
98
|
+ </xs:complexType>
|
|
99
|
+
|
|
100
|
+ <xs:complexType name="timestampable">
|
|
101
|
+ <xs:attribute name="on" type="gedmo:timestampable-action" use="optional" />
|
|
102
|
+ <xs:attribute name="field" type="xs:string" use="optional" />
|
|
103
|
+ <xs:attribute name="value" type="xs:string" use="optional" />
|
|
104
|
+ </xs:complexType>
|
|
105
|
+
|
|
106
|
+ <xs:complexType name="translatable">
|
|
107
|
+ <xs:attribute name="fallback" type="xs:boolean" use="optional" />
|
|
108
|
+ </xs:complexType>
|
|
109
|
+
|
|
110
|
+ <xs:complexType name="emptyType">
|
|
111
|
+ </xs:complexType>
|
|
112
|
+
|
|
113
|
+ <xs:simpleType name="tree-type">
|
|
114
|
+ <xs:restriction base="xs:token">
|
|
115
|
+ <xs:enumeration value="nested"/>
|
|
116
|
+ <xs:enumeration value="closure"/>
|
|
117
|
+ <xs:enumeration value="materializedPath"/>
|
|
118
|
+ </xs:restriction>
|
|
119
|
+ </xs:simpleType>
|
|
120
|
+
|
|
121
|
+ <xs:simpleType name="slug-style">
|
|
122
|
+ <xs:restriction base="xs:token">
|
|
123
|
+ <xs:enumeration value="default"/>
|
|
124
|
+ <xs:enumeration value="camel"/>
|
|
125
|
+ </xs:restriction>
|
|
126
|
+ </xs:simpleType>
|
|
127
|
+
|
|
128
|
+ <xs:simpleType name="timestampable-action">
|
|
129
|
+ <xs:restriction base="xs:token">
|
|
130
|
+ <xs:enumeration value="create"/>
|
|
131
|
+ <xs:enumeration value="update"/>
|
|
132
|
+ <xs:enumeration value="change"/>
|
|
133
|
+ </xs:restriction>
|
|
134
|
+ </xs:simpleType>
|
|
135
|
+
|
|
136
|
+ <xs:complexType name="uploadable">
|
|
137
|
+ <xs:attribute name="allow-overwrite" type="xs:boolean" use="optional" />
|
|
138
|
+ <xs:attribute name="append-number" type="xs:boolean" use="optional" />
|
|
139
|
+ <xs:attribute name="callback" type="xs:string" use="optional" />
|
|
140
|
+ <xs:attribute name="path" type="xs:string" use="optional" />
|
|
141
|
+ <xs:attribute name="path-method" type="xs:string" use="optional" />
|
|
142
|
+ <xs:attribute name="filename-generator" type="xs:string" use="optional" />
|
|
143
|
+ <xs:attribute name="max-size" type="xs:double" use="optional" default="0" />
|
|
144
|
+ <xs:attribute name="allowed-types" type="xs:string" use="optional" />
|
|
145
|
+ <xs:attribute name="disallowed-types" type="xs:string" use="optional" />
|
|
146
|
+ </xs:complexType>
|
|
147
|
+
|
|
148
|
+</xs:schema>
|