-
-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serializing traits with JMSSerializer and YAML #424
Comments
I have the same problem I am using KnpDoctrinebehaviors for my translations and jms does not serialize my translated fields. Did you find a workaround ? @benatespina |
So have anyone solution for this? |
See this issue: #102 I'm using |
I'm having the same issue (version 1.1.0). |
@yanict I'm using version |
Hello, I'm having trouble with this feature too.
Or is it possible to define the serialization elswhere, and how? I tried another file like @benatespina `but it seems never called |
Metadata are per-class when using YAML or XML, defining metadata for a trait will not work. |
When trying to serialize a model that uses traits, JMSSerializer does not serialize properties included by that trait. I am using yaml to configure the serializer but it seems that it's not working.
JMSSerializerBundle is used and the following yaml is located in
Resources/config/serializer/Model.Traits.IdentityTrait.yml
And the
OurClass
configuration is located inResources/config/serializer/Model.OurClass.yml
Some code has been ignored to focus on the problem.
Maybe the trait file name is incorrect?
The text was updated successfully, but these errors were encountered: