13 lines
380 B
PHP
13 lines
380 B
PHP
<?php defined('SYSPATH') or die('No direct script access.');
|
|
|
|
class Model_Rating extends ORM {
|
|
protected $_table_columns = array(
|
|
'id' => array('data_type' => 'int', 'is_nullable' => FALSE),
|
|
'value' => array('data_type' => 'int', 'is_nullable' => FALSE),
|
|
);
|
|
protected $has_many = array(
|
|
'author' => array('model'=>'user'),
|
|
'game' => array('model'=>'game'),
|
|
);
|
|
}
|