/** * @return \yii\db\ActiveQuery */ public function getAmplua() { return $this->hasOne(Amplua::className(), ['id' => 'amplua_id']); }