Could not save quote
vendor/magento/module-quote/Model/Quote/Item/CartItemPersister.php:112
vendor/magento/module-quote/Model/QuoteRepository/SaveHandler.php:82
generated/code/Magento/Quote/Model/QuoteRepository/SaveHandler/Interceptor.php:24
vendor/magento/module-quote/Model/QuoteRepository.php:181
generated/code/Magento/Quote/Model/QuoteRepository/Interceptor.php:76
vendor/magento/module-checkout/Model/Cart.php:574
generated/code/Magento/Checkout/Model/Cart/Interceptor.php:180
app/code/Example/Upload/Test/Integration/QuantityUpdateTest.php:139
When debugging into CartItemPersister, the problem seems to be, that my QuoteItem does not have a ID in the database.
Can this be solved on the side of the fixture module? Is it because I am using a guest cart?
@amenk I am not sure to be honest. Assuming that the quote items have been saved correctly, It might help to reload the quote after the first $cart->save() so that the item collection contains all ids.
I am trying to write a test for a method which works when testing manually. Essentially I am updating the quantity of a bundle product.
I have the following test - with code from my own class
ItemInfo
inlined here for this issue:This fails as follows:
When debugging into CartItemPersister, the problem seems to be, that my QuoteItem does not have a ID in the database.
Can this be solved on the side of the fixture module? Is it because I am using a guest cart?