mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-03 00:34:48 +00:00
24 lines
535 B
PHP
24 lines
535 B
PHP
|
<?php
|
||
|
class Vote extends AppModel {
|
||
|
var $name = 'Vote';
|
||
|
var $displayField = 'translation_id';
|
||
|
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
||
|
|
||
|
var $belongsTo = array(
|
||
|
'Translation' => array(
|
||
|
'className' => 'Translation',
|
||
|
'foreignKey' => 'translation_id',
|
||
|
'conditions' => '',
|
||
|
'fields' => '',
|
||
|
'order' => ''
|
||
|
),
|
||
|
'User' => array(
|
||
|
'className' => 'User',
|
||
|
'foreignKey' => 'user_id',
|
||
|
'conditions' => '',
|
||
|
'fields' => '',
|
||
|
'order' => ''
|
||
|
)
|
||
|
);
|
||
|
}
|