khanat-opennel-code/code/ryzom/tools/server/www/webtt/app/models/vote.php
kerozcak 4d7293d0f5 Changed: #1315 Adding work i have done so far.
--HG--
branch : gsoc2011-kerozcak
2011-06-09 18:23:29 +02:00

23 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' => ''
)
);
}