You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a product is created, the product category and product variant entities exist in the system but are not linked to the product. This happens because the Many-to-One relationship between Product → ProductCategory and Product → ProductVariant is missing. As a result, products are created without any associated category or variant, leading to data inconsistency.
Steps to Reproduce
Create a new product via the API or UI.
Check the product details in the database or API response.
Observe that the product is created successfully.
Check the ProductCategory and ProductVariant tables – they exist but are not linked to the product.
Expected Behavior
A product should always have an associated category and variant.
The Many-to-One relationship should ensure that a product is correctly linked to its category and variant.
The system should prevent creating a product if it is not associated with a category and variant.
Current Behavior
The product is created, but its category and variant are not attached.
The category and variant exist as standalone entities with no relationship to the product.
The missing relation causes data inconsistencies and affects filtering, retrieval, and product management.
Possible Solution
Define proper Many-To-One relationships between Product, ProductCategory, and ProductVariant in the ORM..
Modify the product creation logic to require a category and variant when creating a new product.
Additional Context
This issue affects data integrity and product filtering functionalities.
The text was updated successfully, but these errors were encountered:
Bug Description
When a product is created, the product category and product variant entities exist in the system but are not linked to the product. This happens because the Many-to-One relationship between Product → ProductCategory and Product → ProductVariant is missing. As a result, products are created without any associated category or variant, leading to data inconsistency.
Steps to Reproduce
Expected Behavior
A product should always have an associated category and variant.
The Many-to-One relationship should ensure that a product is correctly linked to its category and variant.
The system should prevent creating a product if it is not associated with a category and variant.
Current Behavior
The product is created, but its category and variant are not attached.
The category and variant exist as standalone entities with no relationship to the product.
The missing relation causes data inconsistencies and affects filtering, retrieval, and product management.
Possible Solution
Define proper Many-To-One relationships between Product, ProductCategory, and ProductVariant in the ORM..
Modify the product creation logic to require a category and variant when creating a new product.
Additional Context
This issue affects data integrity and product filtering functionalities.
The text was updated successfully, but these errors were encountered: