// Remove $table and $identifier property from all classes, and add static $definition instead
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10912 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -64,8 +64,11 @@ class CurrencyCore extends ObjectModel
|
||||
protected $fieldsValidate = array('name' => 'isGenericName', 'iso_code' => 'isLanguageIsoCode', 'iso_code_num' => 'isNumericIsoCode', 'blank' => 'isInt', 'sign' => 'isGenericName',
|
||||
'format' => 'isUnsignedId', 'decimals' => 'isBool', 'conversion_rate' => 'isFloat', 'deleted' => 'isBool', 'active' => 'isBool');
|
||||
|
||||
protected $table = 'currency';
|
||||
protected $identifier = 'id_currency';
|
||||
public static $definition = array(
|
||||
'table' => 'currency',
|
||||
'primary' => 'id_currency',
|
||||
'multilang' => true,
|
||||
);
|
||||
|
||||
/** @var array Currency cache */
|
||||
static protected $currencies = array();
|
||||
|
||||
Reference in New Issue
Block a user