https://github.com/evertharmeling/doctrine-extensions-xml-mapping
Example project showing Doctrine Extensions XML mapping bug
https://github.com/evertharmeling/doctrine-extensions-xml-mapping
Last synced: 3 months ago
JSON representation
Example project showing Doctrine Extensions XML mapping bug
- Host: GitHub
- URL: https://github.com/evertharmeling/doctrine-extensions-xml-mapping
- Owner: evertharmeling
- Created: 2021-03-25T12:18:11.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-25T16:16:34.000Z (about 4 years ago)
- Last Synced: 2025-01-22T19:47:41.069Z (5 months ago)
- Language: PHP
- Size: 46.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Doctrine Extensions XML Mapping
## Run project
- `symfony composer install`
- `docker-compose up --build -d`
- `bin/console doc:schema:update --force`
- `symfony server:start`
- `symfony open:local`## Problem
At every refresh a slug is generated automatically via the Sluggable behavior.
Configuration with `annotation` in `src/Entity/Article/Article.php` on the property works, however the defined config in
`config/doctrine/article/Article.orm.xml` isn't?Enabling / disabling the annotation makes that the slug is or is not generated automatically...
It looks like the problem lies in `\Gedmo\Mapping\ExtensionMetadataFactory::getDriver` line 160-162 because the used driver
always falls back to `\Gedmo\Sluggable\Mapping\Driver\Annotation`...