I installed the DemoSite version of Broadleaf. When I try to delete a product from the /admin section. I get the following error message.
org.hibernate.exception.ConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`broadleaf`.`blc_product`, CONSTRAINT `FK5B95B7C96D386535` FOREIGN KEY (`DEFAULT_SKU_ID`) REFERENCES `blc_sku` (`SKU_ID`))
I understand that there is a foreign key constraint on SKU table. Shouldn't it auto delete SKU's related whenever I delete a product.
Even if not how can I delete the SKU's first. I tried deleting the product options first. But that dint helped either.
This forum is in readonly mode and serves as an archive of old information. All posting, registration and commenting abilities have been turned off. To get help, the Broadleaf team reguarly monitors the broadleaf-commerce tag on Stack Overflow so please ask your questions there.