Exemplo n.º 1
0
 /**
  * 获取合同的其它信息
  * @return \yii\db\ActiveQuery
  */
 public function getOther()
 {
     return $this->hasOne(Other::className(), ['contr_id' => 'contr_id']);
 }