Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you are using Git (or SVN or another source countrol tool) I would recommend to create two separate Symfony2 applications (each in its on repository). Also, every bundle gets its own repository and I would use Composer to set up the dependencies correctly and then install the bundles (LogicABundle, LogicBBundle, AppBundle) as vendors.</p> <p><strong>Update:</strong> Since the different bundles need different entities, one way is to specify the base entity in the bundle that does only need the base entity and extend the entity in the other bundle with additional relations (see <a href="http://docs.doctrine-project.org/en/2.0.x/reference/inheritance-mapping.html" rel="nofollow">Doctrine Inheritance Mapping</a>).</p> <p>For example, define <code>EntityA</code> in LogicABundle and define <code>EntityA2</code> in LogicBBundle where <code>EntityA2</code> extends <code>EntityA</code> and adds additional relations to the entity.</p> <p><strong>Update:</strong> Since you do not have provided additional information why you need to do this, I can only guess now, but one additional idea would be to simply use the same entities in both bundles. The logic in <code>LogicABundle</code> would simply ignore the additional relations. I think that is what most developers would do in your situation.</p> <p>Consider, for example, bundles that provide common functionality like FOSUserBundle. The bundle defines some models, but not every application that uses FOSUserBundle has to use every field of the entities (in a application I am currently developing I completely ignore the groups functionality of FOSUserBundle).</p> <p>Please provider further information if it is possible to use a common entity class and ignore these additional relations.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload