I
I
Igor Katkov2015-09-21 12:27:50
symfony
Igor Katkov, 2015-09-21 12:27:50

Which Symfony config stores Doctrine settings?

Good day!
There is a project written on Symfony. Doctrine entities are used in yml files along the path Bundle/Resources/config/doctrine. Where is this rule described? Is it possible to implement such an algorithm: "If there is no entity file A along the path Bundle/Resources/config/doctrine, then look for it in Bundle/Entity"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-09-21
@iKatkovJS

app/config/config.yml - there is a separate section. To do this, you can simply turn off automatic mapping and manually specify what is stored where (for more details, see the documentation). But it's better to just keep the mappings where they belong.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question