VichUploaderBundle icon indicating copy to clipboard operation
VichUploaderBundle copied to clipboard

Override annotaions similar to Doctrine ?

Open skornev opened this issue 7 years ago • 1 comments

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.

skornev avatar Sep 08 '17 15:09 skornev

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.

garak avatar Oct 23 '17 13:10 garak