SamiXSous / Printful-Bagisto

A Printful plugin for the Bagisto e-commerce framework
6 stars 1 forks source link

When trying to update the product repository I get Error "Method Illuminate\Database\Eloquent\Collection::getTypeInstance does not exist." #1

Closed SamiXSous closed 4 years ago

SamiXSous commented 4 years ago

For some reason when I use the Product Repository update function i get the following error Message Method Illuminate\Database\Eloquent\Collection::getTypeInstance does not exist.

I can create a new productRepository with no problem, but for some reason I get an error when using the update function.

I have searched online for a fix, but with no luck.

The line causing the error is in the PrintfulController on line 183 $this->productRepository->update($syncVariants, $id);

Any help is much appreciated.

SamiXSous commented 4 years ago

Issue resolved in master