modelementpropertyset.map.inc.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage mysql
  5. */
  6. $xpdo_meta_map['modElementPropertySet']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'element_property_sets',
  10. 'extends' => 'xPDOObject',
  11. 'tableMeta' =>
  12. array (
  13. 'engine' => 'InnoDB',
  14. ),
  15. 'fields' =>
  16. array (
  17. 'element' => 0,
  18. 'element_class' => '',
  19. 'property_set' => 0,
  20. ),
  21. 'fieldMeta' =>
  22. array (
  23. 'element' =>
  24. array (
  25. 'dbtype' => 'int',
  26. 'precision' => '10',
  27. 'attributes' => 'unsigned',
  28. 'phptype' => 'integer',
  29. 'null' => false,
  30. 'default' => 0,
  31. 'index' => 'pk',
  32. ),
  33. 'element_class' =>
  34. array (
  35. 'dbtype' => 'varchar',
  36. 'precision' => '100',
  37. 'phptype' => 'string',
  38. 'null' => false,
  39. 'default' => '',
  40. 'index' => 'pk',
  41. ),
  42. 'property_set' =>
  43. array (
  44. 'dbtype' => 'int',
  45. 'precision' => '10',
  46. 'attributes' => 'unsigned',
  47. 'phptype' => 'integer',
  48. 'null' => false,
  49. 'default' => 0,
  50. 'index' => 'pk',
  51. ),
  52. ),
  53. 'indexes' =>
  54. array (
  55. 'PRIMARY' =>
  56. array (
  57. 'alias' => 'PRIMARY',
  58. 'primary' => true,
  59. 'unique' => true,
  60. 'columns' =>
  61. array (
  62. 'element' =>
  63. array (
  64. 'collation' => 'A',
  65. 'null' => false,
  66. ),
  67. 'element_class' =>
  68. array (
  69. 'collation' => 'A',
  70. 'null' => false,
  71. ),
  72. 'property_set' =>
  73. array (
  74. 'collation' => 'A',
  75. 'null' => false,
  76. ),
  77. ),
  78. ),
  79. ),
  80. 'aggregates' =>
  81. array (
  82. 'Element' =>
  83. array (
  84. 'class' => 'modElement',
  85. 'local' => 'element',
  86. 'foreign' => 'id',
  87. 'owner' => 'foreign',
  88. 'cardinality' => 'one',
  89. ),
  90. 'PropertySet' =>
  91. array (
  92. 'class' => 'modPropertySet',
  93. 'local' => 'property_set',
  94. 'foreign' => 'id',
  95. 'owner' => 'foreign',
  96. 'cardinality' => 'one',
  97. ),
  98. ),
  99. );