modcontextresource.map.inc.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage mysql
  5. */
  6. $xpdo_meta_map['modContextResource']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'context_resource',
  10. 'extends' => 'xPDOObject',
  11. 'tableMeta' =>
  12. array (
  13. 'engine' => 'InnoDB',
  14. ),
  15. 'fields' =>
  16. array (
  17. 'context_key' => NULL,
  18. 'resource' => NULL,
  19. ),
  20. 'fieldMeta' =>
  21. array (
  22. 'context_key' =>
  23. array (
  24. 'dbtype' => 'varchar',
  25. 'precision' => '191',
  26. 'phptype' => 'string',
  27. 'null' => false,
  28. 'index' => 'pk',
  29. ),
  30. 'resource' =>
  31. array (
  32. 'dbtype' => 'int',
  33. 'precision' => '11',
  34. 'attributes' => 'unsigned',
  35. 'phptype' => 'integer',
  36. 'null' => false,
  37. 'index' => 'pk',
  38. ),
  39. ),
  40. 'indexes' =>
  41. array (
  42. 'PRIMARY' =>
  43. array (
  44. 'alias' => 'PRIMARY',
  45. 'primary' => true,
  46. 'unique' => true,
  47. 'columns' =>
  48. array (
  49. 'context_key' =>
  50. array (
  51. 'collation' => 'A',
  52. 'null' => false,
  53. ),
  54. 'resource' =>
  55. array (
  56. 'collation' => 'A',
  57. 'null' => false,
  58. ),
  59. ),
  60. ),
  61. ),
  62. 'aggregates' =>
  63. array (
  64. 'Context' =>
  65. array (
  66. 'class' => 'modContext',
  67. 'local' => 'context_key',
  68. 'foreign' => 'key',
  69. 'cardinality' => 'one',
  70. 'owner' => 'foreign',
  71. ),
  72. 'Resource' =>
  73. array (
  74. 'class' => 'modResource',
  75. 'local' => 'resource',
  76. 'foreign' => 'id',
  77. 'cardinality' => 'one',
  78. 'owner' => 'foreign',
  79. ),
  80. ),
  81. );