forked from doctrine/DoctrineBundle
/
doctrine-1.0.xsd
127 lines (108 loc) · 5.48 KB
/
doctrine-1.0.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns="http://symfony.com/schema/dic/doctrine"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://symfony.com/schema/dic/doctrine"
elementFormDefault="qualified">
<xsd:element name="config">
<xsd:complexType>
<xsd:all>
<xsd:element name="dbal" type="dbal" minOccurs="0" maxOccurs="1" />
<xsd:element name="orm" type="orm" minOccurs="0" maxOccurs="1" />
</xsd:all>
</xsd:complexType>
</xsd:element>
<xsd:attributeGroup name="connection-config">
<xsd:attribute name="dbname" type="xsd:string" />
<xsd:attribute name="host" type="xsd:string" />
<xsd:attribute name="port" type="xsd:integer" />
<xsd:attribute name="user" type="xsd:string" />
<xsd:attribute name="password" type="xsd:string" />
<xsd:attribute name="driver" type="xsd:string" />
<xsd:attribute name="driver-class" type="xsd:string" />
<xsd:attribute name="options" type="xsd:string" />
<xsd:attribute name="path" type="xsd:string" />
<xsd:attribute name="unix-socket" type="xsd:string" />
<xsd:attribute name="memory" type="xsd:boolean" />
<xsd:attribute name="charset" type="xsd:string" />
<xsd:attribute name="wrapper-class" type="xsd:string" />
<xsd:attribute name="platform-service" type="xsd:string" />
<xsd:attribute name="logging" type="xsd:string" default="false" />
</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: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:complexType>
<xsd:complexType name="type">
<xsd:attribute name="name" type="xsd:string" use="required" />
<xsd:attribute name="class" type="xsd:string" use="required" />
</xsd:complexType>
<xsd:complexType name="connection">
<xsd:attribute name="name" type="xsd:string" use="required" />
<xsd:attributeGroup ref="connection-config" />
</xsd:complexType>
<xsd:complexType name="mapping">
<xsd:attribute name="name" type="xsd:string" use="required" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="dir" type="xsd:string" />
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="prefix" type="xsd:string" />
<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:element name="metadata-cache-driver" type="metadata_cache_driver" minOccurs="0" maxOccurs="1" />
</xsd:all>
<xsd:attribute name="default-entity-manager" type="xsd:string" />
<xsd:attribute name="default-connection" type="xsd:string" />
<xsd:attribute name="auto-generate-proxy-classes" type="xsd:string" default="false" />
<xsd:attribute name="result-cache-driver" type="xsd:string" />
<xsd:attribute name="metadata-cache-driver" type="xsd:string" />
<xsd:attribute name="query-cache-driver" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="metadata_cache_driver">
<xsd:all>
<xsd:element name="class" type="xsd:string" minOccurs="0" maxOccurs="1" />
<xsd:element name="host" type="xsd:string" minOccurs="0" maxOccurs="1" />
<xsd:element name="port" type="xsd:string" minOccurs="0" maxOccurs="1" />
<xsd:element name="instance-class" type="xsd:string" minOccurs="0" maxOccurs="1" />
</xsd:all>
<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:element name="metadata-cache-driver" type="metadata_cache_driver" minOccurs="0" maxOccurs="1" />
</xsd:all>
<xsd:attribute name="connection" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="result-cache-driver" type="xsd:string" />
<xsd:attribute name="metadata-cache-driver" type="xsd:string" />
<xsd:attribute name="query-cache-driver" type="xsd:string" />
</xsd:complexType>
</xsd:schema>