/** * @return \yii\db\ActiveQuery */ public function getFunction() { return $this->hasOne(Functions::className(), ['ID' => 'function_Id']); }