我是Symfony 4的新手
我使用Doctrine,我想使用yaml实体映射.所以我配置了文件doctrine.yaml并更改type:annotation为type:yml.
当我尝试时php bin/console make:entity,没有生成链接到该实体的yaml映射文件
这是我的doctrine.yaml档案:
parameters:
# Adds a fallback DATABASE_URL if the env var is not set.
# This allows you to run cache:warmup even if your
# environment variables are not available yet.
# You should not need to change this value.
env(DATABASE_URL): ''
doctrine:
dbal:
# configure these for your database server
driver: 'pdo_mysql'
server_version: '5.7'
charset: utf8mb4
# With Symfony 3.3, …