Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. var $hasAndBelongsToMany = array(
  2. 'Department' => array(
  3. 'className' => 'Department',
  4. 'joinTable' => 'departments_projects',
  5. 'foreignKey' => 'project_id',
  6. 'associationForeignKey' => 'department_id',
  7. 'unique' => true,
  8. 'conditions' => '',
  9. 'fields' => '',
  10. 'order' => 'name ASC',
  11. 'limit' => '',
  12. 'offset' => '',
  13. 'finderQuery' => '',
  14. 'deleteQuery' => '',
  15. 'insertQuery' => ''
  16. ),
  17. 'Zone' => array(
  18. 'className' => 'Zone',
  19. 'joinTable' => 'projects_zones',
  20. 'foreignKey' => 'project_id',
  21. 'associationForeignKey' => 'zone_id',
  22. 'unique' => true,
  23. 'conditions' => '',
  24. 'fields' => '',
  25. 'order' => 'name ASC',
  26. 'limit' => '',
  27. 'offset' => '',
  28. 'finderQuery' => '',
  29. 'deleteQuery' => '',
  30. 'insertQuery' => ''
  31. ),
  32. 'ProposedZone' => array(
  33. 'className' => 'Zone',
  34. 'joinTable' => 'projects_proposed_zones',
  35. 'foreignKey' => 'project_id',
  36. 'associationForeignKey' => 'zone_id',
  37. 'unique' => true,
  38. 'conditions' => '',
  39. 'fields' => '',
  40. 'order' => 'name ASC',
  41. 'limit' => '',
  42. 'offset' => '',
  43. 'finderQuery' => '',
  44. 'deleteQuery' => '',
  45. 'insertQuery' => ''
  46. ),
  47. 'User' => array(
  48. 'className' => 'User',
  49. 'joinTable' => 'projects_users',
  50. 'foreignKey' => 'project_id',
  51. 'associationForeignKey' => 'user_id',
  52. 'unique' => true,
  53. 'conditions' => '',
  54. 'fields' => '',
  55. 'order' => '',
  56. 'limit' => '',
  57. 'offset' => '',
  58. 'finderQuery' => '',
  59. 'deleteQuery' => '',
  60. 'insertQuery' => ''
  61. ),
  62. 'Consultant' => array(
  63. 'className' => 'Consultant',
  64. 'joinTable' => 'consultants_projects',
  65. 'foreignKey' => 'project_id',
  66. 'associationForeignKey' => 'consultant_id',
  67. 'unique' => true,
  68. 'conditions' => '',
  69. 'fields' => '',
  70. 'order' => '',
  71. 'limit' => '',
  72. 'offset' => '',
  73. 'finderQuery' => '',
  74. 'deleteQuery' => '',
  75. 'insertQuery' => ''
  76. ),
  77. 'Ordinance' => array(
  78. 'className' => 'Ordinance',
  79. 'joinTable' => 'ordinances_projects',
  80. 'foreignKey' => 'project_id',
  81. 'associationForeignKey' => 'ordinance_id',
  82. 'unique' => true,
  83. 'conditions' => '',
  84. 'fields' => '',
  85. 'order' => '',
  86. 'limit' => '',
  87. 'offset' => '',
  88. 'finderQuery' => '',
  89. 'deleteQuery' => '',
  90. 'insertQuery' => ''
  91. )
  92. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement