Sparx Systems Forum
Enterprise Architect => Bugs and Issues => Topic started by: sergeda on April 19, 2014, 06:17:56 pm
-
Hello.
After renaming param for function on PHP code generation I've got:
public function setCreated_by($data)
{
$this->Created_by = $newVal;
}
Where "data" is the new name for param. Why still newVal in the function?
-
Probably because it's code which is not really interpreted by EA. You would need to correct the code body manually.
q.
-
Probably because it's code which is not really interpreted by EA. You would need to correct the code body manually.
q.
But code generated based on some rules and if it used correct param name in one place I think it shouldn't be problem to use it in another place. To me it looks like a bug.
-
It's like a one way. Code being generated is just spit out, never read back. Only the class definition is read by EA.
q.
-
It's like a one way. Code being generated is just spit out, never read back. Only the class definition is read by EA.
q.
Thanks for info.
-
Have you tried using String concat
something like
$sOpCode1 = "$this->Created_by" + "=" + $newVal
$sOpCode1