Configure doctrine to use attributes instead of annotations

This commit is contained in:
Jan Böhmer 2023-05-28 01:55:30 +02:00
parent 0837f84a43
commit 7191ece7a5
2 changed files with 7 additions and 6 deletions

View file

@ -27,7 +27,7 @@ doctrine:
mappings:
App:
is_bundle: false
type: annotation
type: attribute
dir: '%kernel.project_dir%/src/Entity'
prefix: 'App\Entity'
alias: App