modcontextresource.map.inc.php 1.4 KB

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