06.30
php
saved
voycey-HABTMSelfReferential
Note
voycey-HABTMSelfReferential did not leave a note
voycey-HABTMSelfReferential did not leave a note
- <?php
- class User extends AppModel {
- var $name = 'User';
- //The Associations below have been created with all possible keys, those that are not needed can be removed
- 'foreignKey' => 'group_id',
- 'conditions' => '',
- 'fields' => '',
- 'order' => ''
- )
- );
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => ''
- ),
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => ''
- ),
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => ''
- ),
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => ''
- ),
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => ''
- ),
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => ''
- ),
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => ''
- ),
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => ''
- ),
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => ''
- ),
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => ''
- )
- );
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'exclusive' => '',
- 'finderQuery' => '',
- 'counterQuery' => ''
- ),
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'exclusive' => '',
- 'finderQuery' => '',
- 'counterQuery' => ''
- ),
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'exclusive' => '',
- 'finderQuery' => '',
- 'counterQuery' => ''
- ),
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'exclusive' => '',
- 'finderQuery' => '',
- 'counterQuery' => ''
- ),
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'exclusive' => '',
- 'finderQuery' => '',
- 'counterQuery' => ''
- ),
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'exclusive' => '',
- 'finderQuery' => '',
- 'counterQuery' => ''
- ),
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'exclusive' => '',
- 'finderQuery' => '',
- 'counterQuery' => ''
- ),
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'exclusive' => '',
- 'finderQuery' => '',
- 'counterQuery' => ''
- ),
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'exclusive' => '',
- 'finderQuery' => '',
- 'counterQuery' => ''
- ),
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'exclusive' => '',
- 'finderQuery' => '',
- 'counterQuery' => ''
- ),
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'exclusive' => '',
- 'finderQuery' => '',
- 'counterQuery' => ''
- )
- );
- 'joinTable' => 'groups_users',
- 'foreignKey' => 'user_id',
- 'associationForeignKey' => 'group_id',
- 'unique' => true,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'finderQuery' => '',
- 'deleteQuery' => '',
- 'insertQuery' => ''
- ),
- 'joinTable' => 'users_users',
- 'foreignKey' => 'user_id',
- 'associationForeignKey' => 'friend_id',
- 'unique' => true,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'finderQuery' => '',
- 'deleteQuery' => '',
- 'insertQuery' => ''
- )
- );
- function getIdByName($name) {
- return $data['User']['id'];
- }
- }
- ?>
Parsed in 0.757 seconds, using GeSHi 1.0.7.14