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
{{ message }}
This repository has been archived by the owner on Nov 30, 2017. It is now read-only.
Hi there. I'm reading the docs and following for my project. For creating my custom CartItem entity doc suggest to extend from use Sylius\Component\Cart\Model\CartItem as BaseCartItem;
After that, in the ItemResolver it calls a setVariant function
$item->setVariant($product);
but there's no setVariant in the CartItem i'm extending.
Hi there. I'm reading the docs and following for my project. For creating my custom CartItem entity doc suggest to extend from
use Sylius\Component\Cart\Model\CartItem as BaseCartItem;
After that, in the ItemResolver it calls a setVariant function
but there's no setVariant in the CartItem i'm extending.
What i see is i have that function defined at https://github.com/Sylius/Core/blob/master/Model/OrderItem.php#L75, in a model extending the same CartItem i'm trying to extend.
so, to use this setVariant, shouldn't we extend from Sylius\Core\Model\OrderItem? or am i understanding it totally wrong?
Thanks
The text was updated successfully, but these errors were encountered: