pinia-orm
pinia-orm copied to clipboard
Decorator mutators for properties with same name on different entities are mixed up
Environment
No response
Reproduction
- Assume you have two entities
AandB, both contain the propertyfirstName: string. - Add a mutator decorator for the
firstNameproperty on both entity classes - In the mutator functions, add
console.log("A")andconsole.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