Skip to content

Duplicated product slug #789

@kayue

Description

@kayue

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'

Metadata

Metadata

Assignees

Labels

Potential BugPotential bugs or bugfixes, that needs to be reproduced.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions