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