コード例 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSetting()
 {
     return $this->hasOne(Setting::className(), ['id' => 'setting_id']);
 }