/** * @return \yii\db\ActiveQuery */ public function getFotos() { return $this->hasMany(Fotos::className(), ['idProducto' => 'id']); }