Currently a Product can be extended by doctrine inheritance, which makes it necessary to split the product entity into BaseProduct and a Product class.
Also sulu-inheritance already has been implemented for products. That means, a product can be extended by either doctrine and/or sulu-inheritance.
Expected Behavior
Remove doctrine-inheritance functionality, so that sulu-inheritance is the only way to extend a product.
Pros
Simpler structure of code & avoid confusion
Readability
Only one Product class which contains all properties
Only one Product xml file which contains all properties and relations
Cons
BC Break & necessity for refactorings in older projects
Actual Behavior
Currently a Product can be extended by doctrine inheritance, which makes it necessary to split the product entity into
BaseProduct
and aProduct
class.Also sulu-inheritance already has been implemented for products. That means, a product can be extended by either doctrine and/or sulu-inheritance.
Expected Behavior
Remove doctrine-inheritance functionality, so that sulu-inheritance is the only way to extend a product.
Pros
Cons