google-code-export / umple

Automatically exported from code.google.com/p/umple
1 stars 0 forks source link

Php fails to generate a call of for the sort method when the association is one to many #368

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

generate Php;
class X{
 name;
}
class Y{
 code;
}
class Z{
  1 sorted {code} -- * X;
  1 sorted {name} -- * Y;

  name = {"Z"}
  code = {"1"}
}

Problem:

The "sort" method is not called within the setZ method within the X class.

Additionally:

This call is implemented correctly when there is a * -- * association within 
the addZ method within the X class.

Original issue reported on code.google.com by RedEyedM...@gmail.com on 18 Jan 2013 at 9:09

GoogleCodeExporter commented 9 years ago
This was not an error

class Z{
  1 sorted {code} -- * X;
  1 sorted {name} -- * Y;

  name = {"Z"}
  code = {"1"}
}

should have been:

class Z{
  * sorted {code} -- 1 X;
  * sorted {name} -- 1 Y;

  name = {"Z"}
  code = {"1"}
}

Original comment by RedEyedM...@gmail.com on 18 Jan 2013 at 11:14