// Remove $table and $identifier property from all classes, and add static $definition instead
This commit is contained in:
@@ -154,15 +154,10 @@ class SupplyOrderCore extends ObjectModel
|
||||
'is_template' => 'isBool',
|
||||
);
|
||||
|
||||
/**
|
||||
* @var string Database table name
|
||||
*/
|
||||
protected $table = 'supply_order';
|
||||
|
||||
/**
|
||||
* @var string Database ID name
|
||||
*/
|
||||
protected $identifier = 'id_supply_order';
|
||||
public static $definition = array(
|
||||
'table' => 'supply_order',
|
||||
'primary' => 'id_supply_order',
|
||||
);
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user