Guest User

Untitled

a guest
May 20th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <?php
  2. class User extends AppModel {
  3.  
  4. var $name = 'User';
  5. var $validate = array(
  6. 'username' => array('notempty'),
  7. 'password' => array('notempty')
  8. );
  9.  
  10. //The Associations below have been created with all possible keys, those that are not needed can be removed
  11. var $hasMany = array(
  12. 'Post' => array(
  13. 'className' => 'Post',
  14. 'foreignKey' => 'user_id',
  15. 'dependent' => false,
  16. 'conditions' => '',
  17. 'fields' => '',
  18. 'order' => '',
  19. 'limit' => '',
  20. 'offset' => '',
  21. 'exclusive' => '',
  22. 'finderQuery' => '',
  23. 'counterQuery' => ''
  24. )
  25. );
  26.  
  27. }
  28. ?>
Add Comment
Please, Sign In to add comment