Skip to content

[Feature] Support polymorph relations in key mapping #161

Description

@felabrecque

Problem to solve

Key mapping doesn't work for polymorph relations.

At least, add a mention in the documentation (https://clonio.dev/docs/cloning-config/key-remapping.html) about that.

Proposed solution

Add a structure in the yaml file to be able to list model values with table and column reference for each of them.

Next, introspect the code to fetch this info automatically during a dump.

Who benefits?

Anyone on Laravel with a polymorph relations that needs anonymization.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions