modaccessresource.map.inc.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * @package modx
  4. * @subpackage sqlsrv
  5. */
  6. $xpdo_meta_map['modAccessResource']= array (
  7. 'package' => 'modx',
  8. 'version' => '1.1',
  9. 'table' => 'access_resources',
  10. 'extends' => 'modAccess',
  11. 'fields' =>
  12. array (
  13. 'context_key' => '',
  14. ),
  15. 'fieldMeta' =>
  16. array (
  17. 'context_key' =>
  18. array (
  19. 'dbtype' => 'nvarchar',
  20. 'precision' => '100',
  21. 'phptype' => 'string',
  22. 'null' => false,
  23. 'default' => '',
  24. 'index' => 'fk',
  25. ),
  26. ),
  27. 'indexes' =>
  28. array (
  29. 'context_key' =>
  30. array (
  31. 'alias' => 'context_key',
  32. 'primary' => false,
  33. 'unique' => false,
  34. 'type' => 'BTREE',
  35. 'columns' =>
  36. array (
  37. 'context_key' =>
  38. array (
  39. 'length' => '',
  40. 'collation' => 'A',
  41. 'null' => false,
  42. ),
  43. ),
  44. ),
  45. ),
  46. 'aggregates' =>
  47. array (
  48. 'Target' =>
  49. array (
  50. 'class' => 'modResource',
  51. 'local' => 'target',
  52. 'foreign' => 'id',
  53. 'owner' => 'foreign',
  54. 'cardinality' => 'one',
  55. ),
  56. 'Context' =>
  57. array (
  58. 'class' => 'modContext',
  59. 'local' => 'context_key',
  60. 'foreign' => 'key',
  61. 'cardinality' => 'one',
  62. 'owner' => 'foreign',
  63. ),
  64. ),
  65. );