-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Duplicated product slug #789
Copy link
Copy link
Closed
Labels
Potential BugPotential bugs or bugfixes, that needs to be reproduced.Potential bugs or bugfixes, that needs to be reproduced.
Description
If I create two product with the same name, Sylius will throw an exception Integrity constraint violation.
An exception occurred while executing 'INSERT INTO sylius_product (name, slug, description, available_on, meta_keywords, meta_description, created_at, updated_at, deleted_at, short_description, status, supplier_code, variant_selection_method, back_in_stock_at, published_at, tax_category_id, shipping_category_id, restricted_zone) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["Test", "test", "test", "2014-01-07 03:34:02", null, null, "2014-01-07 03:34:02", "2014-01-07 03:34:02", null, "test", 0, null, "choice", "2009-01-01 00:00:00", null, null, null, null]:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'test' for key 'UNIQ_677B9B74989D9B62'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Potential BugPotential bugs or bugfixes, that needs to be reproduced.Potential bugs or bugfixes, that needs to be reproduced.