Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- /**
- * Description of User
- *
- * @author david
- */
- class User extends AppModel {
- var $name = 'User';
- var $actsAs = array('Containable');
- // var $hasMany = array();
- var $hasAndBelongsToMany =
- array(
- 'Subscription' =>
- array('className'=>'Subscription',
- 'joinTable' => 'users_subscriptions',
- 'foreignKey' => 'user_id',
- 'associationForeignKey' => 'subscription_id',
- 'unique' => true,
- )
- );
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement