fix omission in xml serializer
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sat, 25 Dec 2010 04:18:25 +0000 (04:18 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sat, 25 Dec 2010 04:18:25 +0000 (04:18 +0000)
git-svn-id: https://silmor.de/svn/softmagic/pack/trunk@669 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

woc/php/phpclass.cpp

index c8bf7df..69784f0 100644 (file)
@@ -423,7 +423,7 @@ QString WocPHPClass::classDeserializers(const WocClass&cls)
        code+="\n\t\tthrow WobXmlException(translate(\""+abstractClassName(cls)+"\",\"Unable to deserialize object of type "+className(cls)+": invalid XML.\"));";
        code+="\n\treturn self::fromXml($xml,$xml->documentElement);\n}\n";
        code+="static public function fromXml($xml,$elem){\n\t$data=new "+className(cls)+"();\n";
-       code+="\treturn $data;\n}\n";
+       code+="\tself::fromXmlHelper($data,$xml,$elem);\n\treturn $data;\n}\n";
        code+="static protected function fromXmlHelper($data,$xml,$elem){\n";
        code+="\tparent::fromXmlHelper($data,$xml,$elem);\n";
        k=cls.propertyNames();