A
A
Anton2014-11-13 15:46:54
MySQL
Anton, 2014-11-13 15:46:54

How to bind a table to a specific database (Symfony, Doctrine)?

I didn’t quite understand how to organize the binding of a single table to a specific entity-manager ...
The documentation describes only the binding of the entire bundle, but my bundle uses both entity-managers, and when I try to execute doctrine:schema:update -- em=<manager name> all tables are created in the default entity-manager since the bundle is mapped to both ems

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis, 2014-11-15
@brud

In entity annotations...
@ORMTable(name="MySchema.MyTable")
Isn't it?

B
Boris Benkovsky, 2014-11-13
@benbor

what do you want to do, in general? Want to update only some tables? look at migrations, using doctrine:schema:update for a combat environment is a shot in the leg. And there already apply yourself to which tables you want to
google symfony2 doctrine migration

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question