fligtar%gmail.com 7967d7de4e fixed cake sessions and user models
git-svn-id: svn://10.0.0.236/trunk@208088 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-22 04:24:19 +00:00

43 lines
1.9 KiB
PHP

<?php
class User extends AppModel
{
var $name = 'User';
var $hasAndBelongsToMany = array('Addon' =>
array('className' => 'Addon',
'joinTable' => 'addons_users',
'foreignKey' => 'addon_id',
'associationForeignKey'=> 'user_id',
'conditions' => '',
'order' => '',
'limit' => '',
'unique' => false,
'finderSql' => '',
'deleteQuery'=> '',
)
);
var $belongsTo = array('Cake_Session');
var $hasMany = array('Approval' =>
array('className' => 'Approval',
'conditions' => '',
'order' => '',
'limit' => '',
'foreignKey' => 'user_id',
'dependent' => true,
'exclusive' => false,
'finderSql' => ''
),
'Reviewrating' =>
array('className' => 'Reviewrating',
'conditions' => '',
'order' => '',
'limit' => '',
'foreignKey' => 'user_id',
'dependent' => true,
'exclusive' => false,
'finderSql' => ''
)
);
}
?>