doctrine-1.0.xsd 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xsd:schema xmlns="http://www.symfony-project.org/schema/dic/doctrine"
  3. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  4. targetNamespace="http://www.symfony-project.org/schema/dic/doctrine"
  5. elementFormDefault="qualified">
  6. <xsd:element name="dbal" type="dbal" />
  7. <xsd:complexType name="dbal">
  8. <xsd:all>
  9. <xsd:element name="connections" type="connections" minOccurs="0" maxOccurs="1" />
  10. </xsd:all>
  11. <xsd:attribute name="default-connection" type="xsd:string" />
  12. <xsd:attribute name="dbname" type="xsd:string" />
  13. <xsd:attribute name="host" type="xsd:string" />
  14. <xsd:attribute name="port" type="xsd:integer" />
  15. <xsd:attribute name="user" type="xsd:string" />
  16. <xsd:attribute name="password" type="xsd:string" />
  17. <xsd:attribute name="driver" type="xsd:string" />
  18. <xsd:attribute name="driver-class" type="xsd:string" />
  19. <xsd:attribute name="options" type="xsd:string" />
  20. <xsd:attribute name="path" type="xsd:string" />
  21. <xsd:attribute name="unix-socket" type="xsd:string" />
  22. <xsd:attribute name="memory" type="xsd:boolean" />
  23. <xsd:attribute name="charset" type="xsd:string" />
  24. <xsd:attribute name="wrapper-class" type="xsd:string" />
  25. <xsd:attribute name="platform-service" type="xsd:string" />
  26. <xsd:attribute name="logging" type="xsd:string" default="false" />
  27. </xsd:complexType>
  28. <xsd:complexType name="connections">
  29. <xsd:choice minOccurs="1" maxOccurs="unbounded">
  30. <xsd:element name="connection" type="connection" />
  31. </xsd:choice>
  32. </xsd:complexType>
  33. <xsd:complexType name="connection">
  34. <xsd:attribute name="name" type="xsd:string" use="required" />
  35. <xsd:attribute name="dbname" type="xsd:string" use="required" />
  36. <xsd:attribute name="host" type="xsd:string" />
  37. <xsd:attribute name="port" type="xsd:integer" />
  38. <xsd:attribute name="user" type="xsd:string" />
  39. <xsd:attribute name="password" type="xsd:string" />
  40. <xsd:attribute name="driver" type="xsd:string" />
  41. <xsd:attribute name="driver-class" type="xsd:string" />
  42. <xsd:attribute name="options" type="xsd:string" />
  43. <xsd:attribute name="path" type="xsd:string" />
  44. <xsd:attribute name="unix-socket" type="xsd:string" />
  45. <xsd:attribute name="memory" type="xsd:boolean" />
  46. <xsd:attribute name="charset" type="xsd:string" />
  47. <xsd:attribute name="wrapper-class" type="xsd:string" />
  48. <xsd:attribute name="platform-service" type="xsd:string" />
  49. <xsd:attribute name="logging" type="xsd:string" default="false" />
  50. </xsd:complexType>
  51. <xsd:element name="orm" type="orm" />
  52. <xsd:complexType name="mapping">
  53. <xsd:attribute name="name" type="xsd:string" use="required" />
  54. <xsd:attribute name="type" type="xsd:string" />
  55. <xsd:attribute name="dir" type="xsd:string" />
  56. <xsd:attribute name="alias" type="xsd:string" />
  57. <xsd:attribute name="prefix" type="xsd:string" />
  58. <xsd:attribute name="is-bundle" type="xsd:boolean" />
  59. </xsd:complexType>
  60. <xsd:complexType name="mappings">
  61. <xsd:choice minOccurs="1" maxOccurs="unbounded">
  62. <xsd:element name="mapping" type="mapping" />
  63. </xsd:choice>
  64. </xsd:complexType>
  65. <xsd:complexType name="orm">
  66. <xsd:all>
  67. <xsd:element name="entity-managers" type="entity_managers" minOccurs="0" maxOccurs="1" />
  68. <xsd:element name="mappings" type="mappings" minOccurs="0" maxOccurs="1" />
  69. </xsd:all>
  70. <xsd:attribute name="default-entity-manager" type="xsd:string" />
  71. <xsd:attribute name="default-connection" type="xsd:string" />
  72. <xsd:attribute name="auto-generate-proxy-classes" type="xsd:string" default="false" />
  73. <xsd:attribute name="result-cache-driver" type="xsd:string" />
  74. <xsd:attribute name="metadata-cache-driver" type="xsd:string" />
  75. <xsd:attribute name="query-cache-driver" type="xsd:string" />
  76. </xsd:complexType>
  77. <xsd:complexType name="entity_managers">
  78. <xsd:choice minOccurs="1" maxOccurs="unbounded">
  79. <xsd:element name="entity-manager" type="entity_manager" />
  80. </xsd:choice>
  81. </xsd:complexType>
  82. <xsd:complexType name="entity_manager">
  83. <xsd:all>
  84. <xsd:element name="mappings" type="mappings" minOccurs="0" maxOccurs="1" />
  85. </xsd:all>
  86. <xsd:attribute name="connection" type="xsd:string" />
  87. <xsd:attribute name="name" type="xsd:string" />
  88. <xsd:attribute name="result-cache-driver" type="xsd:string" />
  89. <xsd:attribute name="metadata-cache-driver" type="xsd:string" />
  90. <xsd:attribute name="query-cache-driver" type="xsd:string" />
  91. </xsd:complexType>
  92. </xsd:schema>