Present : When the jsonSerialize() method is called, is the $stopReccursion equals true, the referenced entities are not serialized in the returned data and no key is included to replace the ignore object.
What I would like : In the same situation, include the value of the foreign key column.
Ex:
-
When $stopReccursion === false :
{id: 123, label: "TheCodingMachine", type: {id: 1, label: "Company"}}
-
When $stopReccursion === true :
{id: 123, label: "TheCodingMachine", typeId: 1}