Commit 9ffb8eb8 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

PHP5 writer fix: Exclude realization to self, which creates additional wrong...

PHP5 writer fix: Exclude realization to self, which creates additional wrong 'implement' methods on interface classes.

It is currently unknown why there is an realization to self, which may also affect other code generators.

CCBUG:336889
parent e32e813d
......@@ -3208,6 +3208,10 @@ void Php5Writer::writeOperations(UMLClassifier *c, QTextStream &php)
// we know its a classifier if its in the list
UMLClassifier *real = (UMLClassifier*)a->getObject(Uml::RoleType::B);
// exclude realizations to self
if (real == c)
continue;
UMLOperationList opl(real->getOpList());
foreach(UMLOperation *op, opl) {
opreal.append(op);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment