From 4421f1594157fedf1afc5cf898353875794f969d Mon Sep 17 00:00:00 2001 From: konrad Date: Mon, 29 Nov 2010 21:01:17 +0000 Subject: [PATCH] fix toTable* to diff null from 0 git-svn-id: https://silmor.de/svn/softmagic/pack/trunk@643 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 cc77fd4..ecc05bf 100644 --- a/woc/php/phpclass.cpp +++ b/woc/php/phpclass.cpp @@ -487,7 +487,7 @@ QString WocPHPClass::classMappings(const WocClass&cls) if(meth!="")continue; //check that column exists if(tab.hasColumn(map[mapk[j]])){ - code+="\tif($this->prop_"+mapk[j]+"!==null && $table->"+map[mapk[j]]+"!=$this->prop_"+mapk[j]+")\n"; + code+="\tif($this->prop_"+mapk[j]+"!==null && $table->"+map[mapk[j]]+"!==$this->prop_"+mapk[j]+")\n"; code+="\t\t$table->"+map[mapk[j]]+"=$this->prop_"+mapk[j]+";\n"; } } -- 1.7.2.5