/**
* @ORM\Column(type="integer")
* @JMS\Expose
*/
private int $type;
I want to represent this field as string during serialization with some mapped value like
[0 => 'OK', 1 => 'FAIL']
How to achieve this with JMS?
/**
* @ORM\Column(type="integer")
* @JMS\Expose
*/
private int $type;
I want to represent this field as string during serialization with some mapped value like
[0 => 'OK', 1 => 'FAIL']
How to achieve this with JMS?
Copyright © 2021 Jogjafile Inc.
I couldn't find a native JMS way of doing it so I used @Accessor