From 9dda7a71ea8317acdcd967108f14882b3f733773 Mon Sep 17 00:00:00 2001 From: konrad Date: Tue, 6 Jul 2010 20:00:31 +0000 Subject: [PATCH] make sure parent constructors are called in php git-svn-id: https://silmor.de/svn/softmagic/pack/trunk@532 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- woc/phpout.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/woc/phpout.cpp b/woc/phpout.cpp index 42675c8..211bc0a 100644 --- a/woc/phpout.cpp +++ b/woc/phpout.cpp @@ -18,7 +18,7 @@ static const QByteArray PHPSTART(""); -static const QByteArray SCHEMASTART("class WobSchema extends WobSchemaBase\n{\nfunction __construct(){\n"); +static const QByteArray SCHEMASTART("class WobSchema extends WobSchemaBase\n{\nfunction __construct(){\n\tparent::__construct();\n"); static const QByteArray SCHEMAEND("}};\n"); static const QByteArray TRANSACTCLASS("class WobTransaction extends WobTransactionBase\n{\n"); @@ -367,10 +367,10 @@ QString WocPHPServerOut::classConstruct(const WocClass&cls) if(!cls.propertyIsList(k[i]))code+="=null"; code+=";\n"; } - code+="public function __construct()\n{\n"; + code+="public function __construct()\n{\n\tparent::__construct();\n"; for(int i=0;i