You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
can you replace targetEntity="Sylius\Component\Core\Model\ShippingMethod" with targetEntity="Sylius\Component\Core\Model\ShippingMethodInterface" in trait PaymentMethodRestrictionTrait as it is causing type error if you are accessing channel in PaymentMethod's shippingMethods collection?
You should always use/target entity/resource interface instead of particular resource instance.
Hi, Thanks for letting us know. This will work in newer versions of sylius as you can not map interfaces to target entities on older versions (not sure which exactly), sometimes you need an additional mapping to make it work. Which Sylius version are you using? Could you post a pull request so we can see if the tests will proceed successfully? We could make new version of the plugin supporting only new Sylius versions.
Hello,
can you replace targetEntity="Sylius\Component\Core\Model\ShippingMethod" with targetEntity="Sylius\Component\Core\Model\ShippingMethodInterface" in trait PaymentMethodRestrictionTrait as it is causing type error if you are accessing channel in PaymentMethod's shippingMethods collection?
You should always use/target entity/resource interface instead of particular resource instance.
Thanks
The text was updated successfully, but these errors were encountered: