Answer the question
In order to leave comments, you need to log in
Do I need to split into separate bundles?
There was a question about determining the number of bundles in a Symfony project.
There is a database with ~15 tables (the number of which will grow), which are interconnected "one-to-many", "many-to-many". The application will have to actively work with tables, constantly querying the database with pulling several tables through joins, changes, and so on. All these tables are transferred to AppBundle / Entity /, where they are edited as necessary and upgrade the database (when developing, in fact, the application). But keeping everything in one bundle is a bunch of controllers, forms, and views. I would like to logically break it into bundles - this bundle is for working with projects, this bundle is for working with users, this is for viewing tasks for users, and so on. But everything rests on the fact that it is then necessary to access the entities in the AppBundle, otherwise, you can create copies of entities in different bundles of the same table (the problem with updating the database and repeating the code). There is also a problem with the flexibility and independence of bundles. But on the other hand, the bundles are logically separated, it is convenient to disable functionality, update via git, etc.
In general, how to divide into bundles with such a database structure?
PS There is a desire to create a separate bundle for entities, to which to register the dependency of all other bundles
Answer the question
In order to leave comments, you need to log in
Create only one bundle called AppBundle for your application logic.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question