Answer the question
In order to leave comments, you need to log in
In doctrine:mapping:import how to customize imports based on table prefixes?
I just can't find a solution (and is there one at all)?
There are about a dozen bundles. Each of which corresponds to a set of tables in the database. They are separated by prefixes, for example:
BlogBundle = blog_document, blog_comment...
ForumBundle = forum_document, forum_comment...
RegBundle = reg_document, reg_comment...
php bin/console doctrine:mapping:import --force BlogBundle yml --filter="BlogComment"
php bin/console doctrine:mapping:import --force BlogBundle yml --filter="Comment" --tablePrefix="blog"
# Document.orm.yml
AppBundle\Entity\Document:
type: entity
table: exp_document
Answer the question
In order to leave comments, you need to log in
the very idea described in the question turned out to be "not very". Changed the approach to the classic one:
1. Creating models, 2. describing links in the config, 3. generating tables in the database
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question