Open SakhriHoussem opened 2 years ago
Sure that would be nice!
That shouldn't be too complicated to implement, maybe we could just use a key serializer_context
as default context passed to the property info, would that suit you to then use: @Model(type=User::class, options={"serializer_context"={"attributes=User::SELECT_ATTRIBUTES}}))
?
I don't have much time to dedicate to developping new features in this bundle unfortunately but I'd be happy to merge pull requests :)
I have a constant array of specific entity attributes
I want to use attributes instead of groups
see example selecting-specific-attributes