You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer I'd like to use Context attribute on a class.
In the example bellow serializer will try to set the readonly$type property (it is already set via the constructor from the concrete class.
The solution I'd like is to exclude $type from denormalization. Context attribute on a class would allow this intent to be written in clear form.
Currently I have to annotate with Context each property of the class in question (this is error prone).
I've tried few structural changes on the DTO classes but all of them feel like monkey-patching.
Description
As a developer I'd like to use
Context
attribute on a class.In the example bellow serializer will try to set the
readonly
$type
property (it is already set via the constructor from the concrete class.The solution I'd like is to exclude
$type
from denormalization.Context
attribute on a class would allow this intent to be written in clear form.Currently I have to annotate with
Context
each property of the class in question (this is error prone).I've tried few structural changes on the DTO classes but all of them feel like monkey-patching.
Example
The text was updated successfully, but these errors were encountered: