fix toTable* to diff null from 0
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Mon, 29 Nov 2010 21:01:17 +0000 (21:01 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Mon, 29 Nov 2010 21:01:17 +0000 (21:01 +0000)
git-svn-id: https://silmor.de/svn/softmagic/pack/trunk@643 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

woc/php/phpclass.cpp

index cc77fd4..ecc05bf 100644 (file)
@@ -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";
                        }
                }