// Remove $table and $identifier property from all classes, and add static $definition instead

This commit is contained in:
rMalie
2011-12-05 13:56:03 +00:00
parent e501530475
commit b59ddba454
87 changed files with 394 additions and 214 deletions
+4 -3
View File
@@ -40,9 +40,10 @@ class WebserviceKeyCore extends ObjectModel
protected $fieldsSize = array('key' => 32);
protected $fieldsValidate = array('active' => 'isBool');
protected $table = 'webservice_account';
protected $identifier = 'id_webservice_account';
public static $definition = array(
'table' => 'webservice_account',
'primary' => 'id_webservice_account',
);
public function add($autodate = true, $nullValues = false)
{