I am using some project with doctrine (for the first time) without annotations.
Doctrine mappings are set in xxx.orm.xml files. There are multiple namespaces in the project.
Problem is that command
php bin/console doctrine:schema:update --force
are not setting any new table in the database.
What I do wrong ion this case, how to register new files for doctrine mappings?
After adding new namespace,
doctrine.yaml
should be updated
ie
App\Entity:
type: xml
dir: '%kernel.project_dir%/src/Doctrine/Mapping/Domain'
is_bundle: false
prefix: App\Entity
alias: Entity
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.