modtemplatevartemplate.map.inc.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage sqlsrv
  5. */
  6. $xpdo_meta_map['modTemplateVarTemplate']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'site_tmplvar_templates',
  10. 'extends' => 'xPDOObject',
  11. 'fields' =>
  12. array (
  13. 'tmplvarid' => 0,
  14. 'templateid' => 0,
  15. 'rank' => 0,
  16. ),
  17. 'fieldMeta' =>
  18. array (
  19. 'tmplvarid' =>
  20. array (
  21. 'dbtype' => 'int',
  22. 'phptype' => 'integer',
  23. 'null' => false,
  24. 'default' => 0,
  25. 'index' => 'pk',
  26. ),
  27. 'templateid' =>
  28. array (
  29. 'dbtype' => 'int',
  30. 'phptype' => 'integer',
  31. 'null' => false,
  32. 'default' => 0,
  33. 'index' => 'pk',
  34. ),
  35. 'rank' =>
  36. array (
  37. 'dbtype' => 'int',
  38. 'phptype' => 'integer',
  39. 'null' => false,
  40. 'default' => 0,
  41. ),
  42. ),
  43. 'indexes' =>
  44. array (
  45. 'PRIMARY' =>
  46. array (
  47. 'alias' => 'PRIMARY',
  48. 'primary' => true,
  49. 'unique' => true,
  50. 'type' => 'BTREE',
  51. 'columns' =>
  52. array (
  53. 'tmplvarid' =>
  54. array (
  55. 'length' => '',
  56. 'collation' => 'A',
  57. 'null' => false,
  58. ),
  59. 'templateid' =>
  60. array (
  61. 'length' => '',
  62. 'collation' => 'A',
  63. 'null' => false,
  64. ),
  65. ),
  66. ),
  67. ),
  68. 'aggregates' =>
  69. array (
  70. 'TemplateVar' =>
  71. array (
  72. 'class' => 'modTemplateVar',
  73. 'key' => 'id',
  74. 'local' => 'tmplvarid',
  75. 'foreign' => 'id',
  76. 'cardinality' => 'one',
  77. 'owner' => 'foreign',
  78. ),
  79. 'Template' =>
  80. array (
  81. 'class' => 'modTemplate',
  82. 'key' => 'id',
  83. 'local' => 'templateid',
  84. 'foreign' => 'id',
  85. 'cardinality' => 'one',
  86. 'owner' => 'foreign',
  87. ),
  88. ),
  89. );