Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DaRosenberg opened this issue Oct 11, 2024 · 0 comments

Comments

@DaRosenberg
Copy link

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

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

No branches or pull requests

1 participant