Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ODKU behavior or delete childs before adding them #350

Open
roxblnfk opened this issue Jun 23, 2022 · 0 comments
Open

Add ODKU behavior or delete childs before adding them #350

roxblnfk opened this issue Jun 23, 2022 · 0 comments
Labels

Comments

@roxblnfk
Copy link
Member

product has many productSkus

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-kg' for key 'mt_product_sku.mt_product_sku_index_product_id_attribute_name_61a108014425b'   
(1-kg ,"1" is product id and "kg" is attribute name)

string(194) "INSERT INTO `mt_product_sku` (`sequence`, `status`, `created_at`, `updated_at`, `ip_address`, `product_id`, `attribute_name`, `weight`, `price`, `quantity`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"

the right action should be delete the same rows or ON DUPLICATE KEY UPDATE

Originally posted by @TiaNex-Com in #342

@roxblnfk roxblnfk added the type:bug Bug label Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

1 participant