Open thedomeffm opened 4 years ago
Info:
In normal properties like $createdAt
it is working fine.
It has something to do with the reference.
can you please tell which version of jms/serializer
and jms/metadata
are you using?
this is weird to me as the version that supports @Exclude(if="something")
has not yet been released
composer.json
"jms/serializer-bundle": "^3.5",
composer.lock
[...]
{
"name": "jms/metadata",
"version": "2.1.0",
},
{
"name": "jms/serializer",
"version": "3.6.0",
},
{
"name": "jms/serializer-bundle",
"version": "3.5.0",
}
[...]
I've tried to reproduce this without success, can you try to submit a failing test case?
I have another test case here: https://github.com/schmittjoh/JMSSerializerBundle/issues/889 Maybe it's the same issue.
With version
"jms/serializer-bundle": "^3.5",
the short form of
@Exclude
(in annotations?) does not work fine:But this works: