Php Symfony 4.1:原则:夹具:负载不读取测试配置
我正试图重写我的DBAL驱动程序类,以便解决问题并能够截断我的数据库。 我遵循了,但我的自定义驱动程序从未使用过。 以下命令是否正常:Php Symfony 4.1:原则:夹具:负载不读取测试配置,php,symfony,doctrine-orm,Php,Symfony,Doctrine Orm,我正试图重写我的DBAL驱动程序类,以便解决问题并能够截断我的数据库。 我遵循了,但我的自定义驱动程序从未使用过。 以下命令是否正常: bin/console原则:fixture:load--env=test--truncate-n清除 不加载配置文件 顺便说一句,我的配置文件是这样的(config/packages/test/doctor.yaml): php-bin/console-debug:config-doctor为您提供了什么output@zizoujabbin/console d
bin/console原则:fixture:load--env=test--truncate-n清除
不加载配置文件
顺便说一句,我的配置文件是这样的(config/packages/test/doctor.yaml):
php-bin/console-debug:config-doctor
为您提供了什么output@zizoujabbin/console debug:config原则--env=test
:服务“security.firewall.map”依赖于不存在的服务.security.request\u matcher.ZAICcXS”。(我在其他地方从未犯过这个错误)
doctrine:
dbal:
# configure these for your database server
#driver: 'pdo_mysql'
#server_version: '5.6'
driver_class: App\DBAL\Driver
url: '%env(resolve:TEST_DATABASE_URL)%'
orm:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity'
prefix: 'App\Entity'
alias: App