Closed GoogleCodeExporter closed 9 years ago
Ok, so I think I figured it out! Turns out the problem was in the
association_SetNToOptionalOne jet file. In this specific multiplicity
instance, in the setMany method (taking in an array), the for loop was as
follows:
for (<%=gen.translate("type",av)%> <%=gen.translate("associationNew",av)%> :
<%=gen.translate("parameterMany",av)%>)
while, in other multiplicities (for example, MNToOptionalOne), the setMany
method has the following for loop:
for (<%=gen.translate("type",av)%> <%=gen.translate("parameterOne",av)%> :
<%=gen.translate("parameterMany",av)%>)
By changing the for loop (and all instances referring to associationNew)
replacing associationNew with parameterOne, this solves the name conflict.
I also had to change one of the test template files (OptionalNToOne_One.txt) to
match the new syntax (in this template, the name error was present).
I also looked at php and ruby to see if the error was present in these
languages, but, although the for loop naming (using associationNew) is the same
the syntax error is not present here, due to an 's' at the end of the name of
the incoming array (method parameter) - so, there is no name conflict.
I will commit a patch tomorrow once I have internet access on my linux
partition!
Original comment by ellen.ar...@gmail.com
on 15 Oct 2014 at 3:08
Original comment by ellen.ar...@gmail.com
on 16 Oct 2014 at 1:53
Original issue reported on code.google.com by
ellen.ar...@gmail.com
on 11 Oct 2014 at 1:14