Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class User extends AppModel {
- var $name = 'User';
- var $validate = array(
- 'username' => array('notempty'),
- 'password' => array('notempty')
- );
- //The Associations below have been created with all possible keys, those that are not needed can be removed
- var $hasMany = array(
- 'Post' => array(
- 'className' => 'Post',
- 'foreignKey' => 'user_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'exclusive' => '',
- 'finderQuery' => '',
- 'counterQuery' => ''
- )
- );
- }
- ?>
Add Comment
Please, Sign In to add comment