From: konrad Date: Sat, 25 Dec 2010 04:18:25 +0000 (+0000) Subject: fix omission in xml serializer X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=99f3cd37841a4481f6afa1462bed19e4f2a66d5d;p=konrad%2Fpack.git fix omission in xml serializer git-svn-id: https://silmor.de/svn/softmagic/pack/trunk@669 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- diff --git a/woc/php/phpclass.cpp b/woc/php/phpclass.cpp index c8bf7df..69784f0 100644 --- a/woc/php/phpclass.cpp +++ b/woc/php/phpclass.cpp @@ -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();