protected $tableName = 'game';
protected $fields = array('gameid', 'developerid', 'ti
protected $pk = 'gameid';
public $_auto = array(
array('create_time','time',self::MODEL_INSERT,'function'),
);
protected $_li
'Urlmanage' => array(
'mapping_type' => self::HAS_ONE,
'class_name' => 'Urlmanage',
'foreign_key' => 'urlid',
),
);
}
$Game = D("Game"); // 实例化User对象
// 查找status值为1name值为think的用户数据
$data = $Game->relation(true)->where('gameid=4')->select();
最佳答案