inklabs / kommerce-core

PHP shopping cart core platform
https://kommerce-laravel-demo.jamieisaacs.com/
Apache License 2.0
65 stars 14 forks source link

Copying cart items fails with duplicate entry error #50

Closed pdt256 closed 8 years ago

pdt256 commented 8 years ago

When calling CartService::copyCartItems() the following error occurs:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '8\xF5\xD4s/\xF4I\xAF\x85\x0A
EMERGENCY: Doctrine\DBAL\Exception\UniqueConstraintViolationException [ 0 ]:
An exception occurred while executing 'INSERT INTO zk_CartItemOptionProduct
(created, updated, id, cartItem_id, optionProduct_id) VALUES (?, ?, ?, ?, ?)' with
params [1467174718, null, "\x38\xf5\xd4\x73\x2f\xf4\x49\xaf\x85\x0a\x3c\xec\x1a\x2f\x68\x7b",
"\xfb\xdb\x54\x11\x60\xdf\x43\xda\xb3\x94\xa9\x42\xe0\xc3\x26\x8a",
"\xd0\x9b\xd8\x84\x3f\xb5\x40\xc6\xba\xde\x54\x84\x6c\x8c\xa4\x63"]: