Initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace Admin\Model;
|
||||
use Think\Model\RelationModel;
|
||||
class FeedbackModel extends RelationModel{
|
||||
//关联模型
|
||||
protected $_link = array(
|
||||
//类别
|
||||
"feedback_cat"=>array(
|
||||
'mapping_type' => self::BELONGS_TO,
|
||||
'foreign_key' => 'catid',
|
||||
),
|
||||
//用户
|
||||
"member"=>array(
|
||||
'mapping_type' => self::BELONGS_TO,
|
||||
'mapping_fields' => "truename,member_id",
|
||||
'foreign_key' => 'member_id',
|
||||
)
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user