コード例 #1
0
 /**
  * 定义与OperationType的关联关系
  */
 public function getOptype()
 {
     return $this->hasOne(OperationType::className(), ['type_id' => 'op_sub_type']);
 }