// Remove $this->table and $this->identifier from objectModels + normalize

This commit is contained in:
rMalie
2011-12-09 14:05:24 +00:00
parent 540858527b
commit a284e2ef8b
20 changed files with 124 additions and 115 deletions
+2 -2
View File
@@ -607,9 +607,9 @@ class CustomerCore extends ObjectModel
/* Change status to active/inactive */
return Db::getInstance()->execute('
UPDATE `'.pSQL(_DB_PREFIX_.$this->table).'`
UPDATE `'.pSQL(_DB_PREFIX_.$this->def['table']).'`
SET `date_upd` = NOW()
WHERE `'.pSQL($this->identifier).'` = '.(int)$this->id);
WHERE `'.$this->def['primary'].'` = '.(int)$this->id);
}