Skip to content

Idea : in jsonSerialize() when $stopReccursion equals true, include the key of the ignored object #152

@ThibBal

Description

@ThibBal

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}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions