/app/models/group.php
PHP | 52 lines | 46 code | 5 blank | 1 comment | 0 complexity | 8a1a446f323e43f5642400110c72e6f9 MD5 | raw file
- <?php
- class Group extends AppModel {
-
- var $name = 'Group';
-
- //The Associations below have been created with all possible keys, those that are not needed can be removed
- var $belongsTo = array(
- 'Parent' => array(
- 'className' => 'Group',
- 'foreignKey' => 'parent_id',
- 'conditions' => '',
- 'fields' => '',
- 'order' => ''
- )
- );
-
- var $hasMany = array(
- 'User' => array(
- 'className' => 'User',
- 'foreignKey' => 'group_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'exclusive' => '',
- 'finderQuery' => '',
- 'counterQuery' => ''
- )
- );
-
- var $hasAndBelongsToMany = array(
- 'Link' => array(
- 'className' => 'Link',
- 'joinTable' => 'groups_links',
- 'foreignKey' => 'group_id',
- 'associationForeignKey' => 'link_id',
- 'unique' => true,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'finderQuery' => '',
- 'deleteQuery' => '',
- 'insertQuery' => ''
- )
- );
-
- }
- ?>