dustin10 / VichUploaderBundle

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

Override annotaions similar to Doctrine ? #764

Open skornev opened 7 years ago

skornev commented 7 years ago

I use traits and I would like to override annotations. Currently it looks like there is no such option. Is it possible to override annotations like doctrine does http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/tutorials/override-field-association-mappings-in-subclasses.html?

I know I can use abstract class and put trait there and then extend that class, but that seems awkward.

garak commented 7 years ago

It looks like an edge case to me, and even annotation override is awkward. My suggestion is to drop annotations and use xml or yaml mapping.