mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-14 19:49:55 +00:00
0055bd7c4e
--HG-- branch : gsoc2011-kerozcak
25 lines
586 B
PHP
25 lines
586 B
PHP
<?php
|
|
class Vote extends AppModel {
|
|
var $name = 'Vote';
|
|
var $displayField = 'translation_id';
|
|
|
|
var $scaffoldForbiddenActions = array("delete");
|
|
//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' => ''
|
|
)
|
|
);
|
|
}
|