Cha*_*lie 6 symfony doctrine-orm
使用独白记录学说查询的最佳实践是什么?我一周前开始使用 symfony。
在您的配置中,将doctrine.dbal.logging设为true。
# app/config/config.yml
doctrine:
dbal:
driver: pdo_mysql
# ...
logging: true
Run Code Online (Sandbox Code Playgroud)
事实上,在开发环境中,默认情况下会通过kernel.debug参数设置值来记录查询,例如logging: %kernel.debug%。
| 归档时间: |
|
| 查看次数: |
4136 次 |
| 最近记录: |