2011-06-09 16:23:29 +00:00
|
|
|
<?php
|
|
|
|
class Vote extends AppModel {
|
|
|
|
var $name = 'Vote';
|
|
|
|
var $displayField = 'translation_id';
|
2011-07-14 14:49:25 +00:00
|
|
|
|
|
|
|
var $scaffoldForbiddenActions = array("delete");
|
2011-06-09 16:23:29 +00:00
|
|
|
//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' => ''
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|