mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-14 19:49:55 +00:00
36 lines
783 B
PHP
36 lines
783 B
PHP
<?php
|
|
class User extends AppModel {
|
|
var $name = 'User';
|
|
var $displayField = 'name';
|
|
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
|
|
|
var $hasMany = array(
|
|
'Translation' => array(
|
|
'className' => 'Translation',
|
|
'foreignKey' => 'user_id',
|
|
'dependent' => false,
|
|
'conditions' => '',
|
|
'fields' => '',
|
|
'order' => '',
|
|
'limit' => '',
|
|
'offset' => '',
|
|
'exclusive' => '',
|
|
'finderQuery' => '',
|
|
'counterQuery' => ''
|
|
),
|
|
'Vote' => array(
|
|
'className' => 'Vote',
|
|
'foreignKey' => 'user_id',
|
|
'dependent' => false,
|
|
'conditions' => '',
|
|
'fields' => '',
|
|
'order' => '',
|
|
'limit' => '',
|
|
'offset' => '',
|
|
'exclusive' => '',
|
|
'finderQuery' => '',
|
|
'counterQuery' => ''
|
|
)
|
|
);
|
|
|
|
}
|