diff --git a/src/Controller/Component/ShoppingCartComponent.php b/src/Controller/Component/ShoppingCartComponent.php index 0a47e94..ad6cbdc 100644 --- a/src/Controller/Component/ShoppingCartComponent.php +++ b/src/Controller/Component/ShoppingCartComponent.php @@ -93,7 +93,7 @@ class ShoppingCartComponent extends Component ->first(); if (isset($cart) && isset($identity) && !isset($cart[$this->userIdField])) { - $cart = $this->Carts->patchEntity([ + $cart = $this->Carts->patchEntity($cart, [ $this->userIdField => $identity->getIdentifier(), ]);