Open joseldgois opened 5 years ago
Thanks for reporting. However, not sure we should change this (e.g. replace entity -> arg0
or something) because it would make the generated code harder to read.
Typically one avoids naming classes similar to names used in an API (here the @Entity
annotation) so this should not be that big of an issue.
-Uwe
Issue Basics
Reproducing the bug
Description
Add a ToMany property with a backlink to a property named "entity" in another class. When the cursor is generating, a variable name conflict occurs since the generated parameter for the put method in the cursor is also called "entity".
Code
An @Entity with ToMany link
The TradingSession Entiy has the ToOne link.
The conflict occurs in the Cursor generated code.