I'm having trouble serializing self-regulating properties using JMSSerializerBundle.
I want all properties, but id included in the parent, but only id included in the child.
Entity:
class Member
{
private $id;
private $enrollIp;
private $originalEnroller;
Required Conclusion:
{"enroll_ip":3232235521,"original_enroller":{"id":12345}}
Is there any way to do this?
source
share