Как в symfony у doctrine указать папку для хранения entity
doctrine:
dbal:
url: '%env(resolve:DATABASE_URL)%'
# IMPORTANT: You MUST configure your server version,
# either here or in the DATABASE_URL env var (see .env file)
#server_version: '5.7'
orm:
auto_generate_proxy_classes: true
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
auto_mapping: true
mappings:
App:
type: annotation
dir: '%kernel.project_dir%/src/Infrastructure/Entity'
is_bundle: false
prefix: App\Infrastructure\Entity
alias: App
получаю
/app # php bin/console make:entity
Class name of the entity to create or update (e.g. BraveChef):
> asdas
created: src/Entity/Asdas.php
created: src/Repository/AsdasRepository.php
[ERROR] Only annotation mapping is supported by make:entity, but the <info>App\Entity\Asdas</info> class uses a
different format. If you would like this command to generate the properties & getter/setter methods, add your
mapping configuration, and then re-run this command with the <info>--regenerate</info> flag.
т.е. папка не та что я указал