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

Unable to delete a brand #2030

Open
yasirmturk opened this issue Dec 5, 2024 · 0 comments
Open

Unable to delete a brand #2030

yasirmturk opened this issue Dec 5, 2024 · 0 comments
Labels
bug Something isn't working unconfirmed

Comments

@yasirmturk
Copy link
Contributor

  • Lunar version: 1.0.0-beta.5
  • Laravel Version: 11.31.0
  • PHP Version: 8.2.25
  • Database Driver & Version: 10.6.20-MariaDB

Expected Behaviour:

Brand is deleted

Actual Behaviour:

SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`aurastyl_db`.`lunar_products`, CONSTRAINT `lunar_products_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `lunar_brands` (`id`)) (Connection: mysql, SQL: delete from `lunar_brands` where `id` = 11)

Steps To Reproduce:

  • Remove all products
  • Remove all urls
  • Click on Edit Brand > Delete > Confirm Delete
@yasirmturk yasirmturk added bug Something isn't working unconfirmed labels Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed
Projects
None yet
Development

No branches or pull requests

1 participant