doctrine-1.0.xsd 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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:sequence>
  9. <xsd:element name="connections" type="connections" minOccurs="0" maxOccurs="1" />
  10. </xsd:sequence>
  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="options" type="xsd:string" />
  19. <xsd:attribute name="path" type="xsd:string" />
  20. <xsd:attribute name="unix_socket" type="xsd:string" />
  21. <xsd:attribute name="memory" type="xsd:boolean" />
  22. <xsd:attribute name="charset" type="xsd:string" />
  23. </xsd:complexType>
  24. <xsd:complexType name="connections">
  25. <xsd:sequence>
  26. <xsd:element name="connection" type="connection" minOccurs="1" maxOccurs="unbounded" />
  27. </xsd:sequence>
  28. </xsd:complexType>
  29. <xsd:complexType name="connection">
  30. <xsd:attribute name="id" type="xsd:string" use="required" />
  31. <xsd:attribute name="dbname" type="xsd:string" use="required" />
  32. <xsd:attribute name="host" type="xsd:string" />
  33. <xsd:attribute name="port" type="xsd:integer" />
  34. <xsd:attribute name="user" type="xsd:string" />
  35. <xsd:attribute name="password" type="xsd:string" />
  36. <xsd:attribute name="driver" type="xsd:string" />
  37. <xsd:attribute name="options" type="xsd:string" />
  38. <xsd:attribute name="path" type="xsd:string" />
  39. <xsd:attribute name="unix_socket" type="xsd:string" />
  40. <xsd:attribute name="memory" type="xsd:boolean" />
  41. <xsd:attribute name="charset" type="xsd:string" />
  42. <xsd:attribute name="configuration_class" type="xsd:string" />
  43. <xsd:attribute name="event_manager_class" type="xsd:string" />
  44. <xsd:attribute name="wrapper_class" type="xsd:string" />
  45. </xsd:complexType>
  46. <xsd:element name="orm" type="orm" />
  47. <xsd:complexType name="orm">
  48. <xsd:sequence>
  49. <xsd:element name="entity_managers" type="entity_managers" minOccurs="0" maxOccurs="1" />
  50. </xsd:sequence>
  51. <xsd:attribute name="default_entity_manager" type="xsd:string" />
  52. <xsd:attribute name="metadata_driver" type="xsd:string" />
  53. <xsd:attribute name="cache_driver" type="xsd:string" />
  54. </xsd:complexType>
  55. <xsd:complexType name="entity_managers">
  56. <xsd:sequence>
  57. <xsd:element name="entity_manager" type="entity_manager" minOccurs="1" maxOccurs="unbounded" />
  58. </xsd:sequence>
  59. </xsd:complexType>
  60. <xsd:complexType name="entity_manager">
  61. <xsd:attribute name="connection" type="xsd:string" />
  62. </xsd:complexType>
  63. </xsd:schema>