Initial commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
namespace Admin\Model;
|
||||
use Think\Model\RelationModel;
|
||||
class TaskSubModel extends RelationModel{
|
||||
|
||||
protected $_link = array(
|
||||
"operator"=>array(
|
||||
'mapping_type' => self::BELONGS_TO,
|
||||
'class_name' => 'user',
|
||||
'mapping_fields' => 'user_name',
|
||||
'foreign_key' => 'subtask_operator_id',
|
||||
),
|
||||
"qc"=>array(
|
||||
'mapping_type' => self::BELONGS_TO,
|
||||
'class_name' => 'user',
|
||||
'mapping_fields' => 'user_name',
|
||||
'foreign_key' => 'subtask_qc_id',
|
||||
),
|
||||
"task_flow"=>array(
|
||||
'mapping_type' => self::BELONGS_TO,
|
||||
'class_name' => 'task_flow',
|
||||
'foreign_key' => 'task_flow_id',
|
||||
),
|
||||
"task"=>array(
|
||||
'mapping_type' => self::BELONGS_TO,
|
||||
'class_name' => 'task',
|
||||
'foreign_key' => 'task_id',
|
||||
)
|
||||
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user