/** * @return \yii\db\ActiveQuery */ public function getIdAuto() { return $this->hasOne(Autos::className(), ['id' => 'id_auto']); }
/** * @return \yii\db\ActiveQuery */ public function getAutos() { return $this->hasMany(Autos::className(), ['id_estado' => 'id']); }