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