Doctrine Inheritance replacement
Currenty we're developing a very flexible and modular application with Zend Framework 2 and Doctrine 2. In this application there are multiple Doctrine entities, for example let's say the entity Product in the module Products . This module Products is the base/default module for product management. We want to be able to create a custom Products module for a customer ( XProducts ). Therefore I created a new entity, XProduct (with some extra fields) which extends Product . So if the custom module is enabled I want to use XProduct and else Product , but never together (in the same project). If I