dustin10 / VichUploaderBundle

A simple Symfony bundle to ease file uploads with ORM entities and ODM documents.
MIT License
1.85k stars 519 forks source link

Rework Doctrine mapping to XML to fix issue with SF 5.4 #1244

Closed tobias-93 closed 2 years ago

tobias-93 commented 2 years ago

Different approach to #1243, change the configuration to XML (as suggested in https://symfony.com/doc/current/bundles/best_practices.html#doctrine-entities-documents). Symlink in src/Resources/config/doctrine is needed for backwards compatibility, as the bundle path detection is fixed in Symfony 5.4.

tobias-93 commented 2 years ago

Apparently Doctrine doesn't do symlinks, so I made a copy of the mapping file in the directory Doctrine expects it