From 99f3cd37841a4481f6afa1462bed19e4f2a66d5d Mon Sep 17 00:00:00 2001 From: konrad Date: Sat, 25 Dec 2010 04:18:25 +0000 Subject: [PATCH] fix omission in xml serializer git-svn-id: https://silmor.de/svn/softmagic/pack/trunk@669 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- woc/php/phpclass.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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(); -- 1.7.2.5