Home >Backend Development >PHP Tutorial >How does symfony allow doctrine's yml file to correspond to different databases when configuring tables?

How does symfony allow doctrine's yml file to correspond to different databases when configuring tables?

WBOY
WBOYOriginal
2016-08-04 09:21:071038browse

I want to put the less important log-related tables into a separate log database log, and put the others into the default database. Different database connection accounts are the same. Now it is not possible to generate log database tables based on yml. The default database is It can be generated, but I don’t want to use two database connections, so I can’t connect and query. Is there a good solution?

Reply content:

I want to put the less important log-related tables into a separate log database log, and put the others into the default database. Different database connection accounts are the same. Now it is not possible to generate log database tables based on yml. The default database is It can be generated, but I don’t want to use two database connections, so I can’t connect and query. Is there a good solution?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn