modtemplatevarresourcegroup.map.inc.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage mysql
  5. */
  6. $xpdo_meta_map['modTemplateVarResourceGroup']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'site_tmplvar_access',
  10. 'extends' => 'xPDOSimpleObject',
  11. 'tableMeta' =>
  12. array (
  13. 'engine' => 'InnoDB',
  14. ),
  15. 'fields' =>
  16. array (
  17. 'tmplvarid' => 0,
  18. 'documentgroup' => 0,
  19. ),
  20. 'fieldMeta' =>
  21. array (
  22. 'tmplvarid' =>
  23. array (
  24. 'dbtype' => 'int',
  25. 'precision' => '10',
  26. 'phptype' => 'integer',
  27. 'null' => false,
  28. 'default' => 0,
  29. ),
  30. 'documentgroup' =>
  31. array (
  32. 'dbtype' => 'int',
  33. 'precision' => '10',
  34. 'phptype' => 'integer',
  35. 'null' => false,
  36. 'default' => 0,
  37. ),
  38. ),
  39. 'indexes' =>
  40. array (
  41. 'tmplvar_template' =>
  42. array (
  43. 'alias' => 'tmplvar_template',
  44. 'type' => 'BTREE',
  45. 'columns' =>
  46. array (
  47. 'tmplvarid' =>
  48. array (
  49. 'length' => '',
  50. 'collation' => 'A',
  51. 'null' => false,
  52. ),
  53. 'documentgroup' =>
  54. array (
  55. 'length' => '',
  56. 'collation' => 'A',
  57. 'null' => false,
  58. ),
  59. ),
  60. ),
  61. ),
  62. 'aggregates' =>
  63. array (
  64. 'TemplateVar' =>
  65. array (
  66. 'class' => 'modTemplateVar',
  67. 'local' => 'tmplvarid',
  68. 'foreign' => 'id',
  69. 'cardinality' => 'one',
  70. 'owner' => 'foreign',
  71. ),
  72. 'ResourceGroup' =>
  73. array (
  74. 'class' => 'modResourceGroup',
  75. 'local' => 'documentgroup',
  76. 'foreign' => 'id',
  77. 'cardinality' => 'one',
  78. 'owner' => 'foreign',
  79. ),
  80. ),
  81. );