Skip to content

Decorator mutators for properties with same name on different entities are mixed up #1937

Description

@DaRosenberg

Environment

No response

Reproduction

  • Assume you have two entities A and B, both contain the property firstName: string.
  • Add a mutator decorator for the firstName property on both entity classes
  • In the mutator functions, add console.log("A") and console.log("B") statements so you can see which mutators execute and when

Describe the bug

If you add a mutator decorator for the firstName property on both entity classes, only one of them will run for both entities.

If you absolutely need a reproduction for this issue, let me know and I can try and create one, but I suspect that you will maybe already have an idea why it's happening. :)

Additional context

No response

Logs

No response

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions