Skip to content

[ObjectMapper] Multiple: context array, mapping depth, selective instantiation of lazy objects. #61357

@Coffee2CodeNL

Description

@Coffee2CodeNL

Description

I'd like to see a context variable added to the map() function as third argument, which should be an array.

I'd like to see a mapping depth context variable, so it won't map more than it should.

I'd like to see a way to prevent the mapper from instantiating lazy objects (think a doctrine PersistentCollection in the context of api platform, where it could just be a empty object with only the ID set, preventing a lot of unnecessary queries when they are serialized to IRIs anyway)

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions