A
A
AJ2015-08-31 16:12:23
MySQL
AJ, 2015-08-31 16:12:23

How to make Doctrine2 ignore indexes?

Good afternoon. I describe the situation.
There is a project on Symfony2. Implemented Entity and Repository. In order to facilitate the application at the time of loading, the admin part is moved to a separate project on a subdomain and uses the same database. The main project is loaded into the admin project as a bundle so that you can use the already created Entity and Repository and not duplicate them in 2 projects.
However, custom repositories need to be extended with the addition of CRUD methods. To do this, Entities are created in the AdminBundle that extend the base ones, and in the repository they extend the standard ones from the main project. However, there is one "but". The new (admin) application, when updating the database, tries to reset the indexes of the old application and register its own, which is not great, you understand.
Hence the question. How to force extended Entities in AdminBundle to use already existing indexes from the main application automatically and not create their own?
PS - the option with manually specifying indexes is considered last, because I want to use all the advantages of Doctrine for database control.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question