PageRenderTime 39ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/app/models/group.php

https://github.com/ata/steak
PHP | 52 lines | 46 code | 5 blank | 1 comment | 0 complexity | 8a1a446f323e43f5642400110c72e6f9 MD5 | raw file
  1. <?php
  2. class Group extends AppModel {
  3. var $name = 'Group';
  4. //The Associations below have been created with all possible keys, those that are not needed can be removed
  5. var $belongsTo = array(
  6. 'Parent' => array(
  7. 'className' => 'Group',
  8. 'foreignKey' => 'parent_id',
  9. 'conditions' => '',
  10. 'fields' => '',
  11. 'order' => ''
  12. )
  13. );
  14. var $hasMany = array(
  15. 'User' => array(
  16. 'className' => 'User',
  17. 'foreignKey' => 'group_id',
  18. 'dependent' => false,
  19. 'conditions' => '',
  20. 'fields' => '',
  21. 'order' => '',
  22. 'limit' => '',
  23. 'offset' => '',
  24. 'exclusive' => '',
  25. 'finderQuery' => '',
  26. 'counterQuery' => ''
  27. )
  28. );
  29. var $hasAndBelongsToMany = array(
  30. 'Link' => array(
  31. 'className' => 'Link',
  32. 'joinTable' => 'groups_links',
  33. 'foreignKey' => 'group_id',
  34. 'associationForeignKey' => 'link_id',
  35. 'unique' => true,
  36. 'conditions' => '',
  37. 'fields' => '',
  38. 'order' => '',
  39. 'limit' => '',
  40. 'offset' => '',
  41. 'finderQuery' => '',
  42. 'deleteQuery' => '',
  43. 'insertQuery' => ''
  44. )
  45. );
  46. }
  47. ?>