Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var $hasAndBelongsToMany = array(
- 'Department' => array(
- 'className' => 'Department',
- 'joinTable' => 'departments_projects',
- 'foreignKey' => 'project_id',
- 'associationForeignKey' => 'department_id',
- 'unique' => true,
- 'conditions' => '',
- 'fields' => '',
- 'order' => 'name ASC',
- 'limit' => '',
- 'offset' => '',
- 'finderQuery' => '',
- 'deleteQuery' => '',
- 'insertQuery' => ''
- ),
- 'Zone' => array(
- 'className' => 'Zone',
- 'joinTable' => 'projects_zones',
- 'foreignKey' => 'project_id',
- 'associationForeignKey' => 'zone_id',
- 'unique' => true,
- 'conditions' => '',
- 'fields' => '',
- 'order' => 'name ASC',
- 'limit' => '',
- 'offset' => '',
- 'finderQuery' => '',
- 'deleteQuery' => '',
- 'insertQuery' => ''
- ),
- 'ProposedZone' => array(
- 'className' => 'Zone',
- 'joinTable' => 'projects_proposed_zones',
- 'foreignKey' => 'project_id',
- 'associationForeignKey' => 'zone_id',
- 'unique' => true,
- 'conditions' => '',
- 'fields' => '',
- 'order' => 'name ASC',
- 'limit' => '',
- 'offset' => '',
- 'finderQuery' => '',
- 'deleteQuery' => '',
- 'insertQuery' => ''
- ),
- 'User' => array(
- 'className' => 'User',
- 'joinTable' => 'projects_users',
- 'foreignKey' => 'project_id',
- 'associationForeignKey' => 'user_id',
- 'unique' => true,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'finderQuery' => '',
- 'deleteQuery' => '',
- 'insertQuery' => ''
- ),
- 'Consultant' => array(
- 'className' => 'Consultant',
- 'joinTable' => 'consultants_projects',
- 'foreignKey' => 'project_id',
- 'associationForeignKey' => 'consultant_id',
- 'unique' => true,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'finderQuery' => '',
- 'deleteQuery' => '',
- 'insertQuery' => ''
- ),
- 'Ordinance' => array(
- 'className' => 'Ordinance',
- 'joinTable' => 'ordinances_projects',
- 'foreignKey' => 'project_id',
- 'associationForeignKey' => 'ordinance_id',
- 'unique' => true,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'finderQuery' => '',
- 'deleteQuery' => '',
- 'insertQuery' => ''
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement