[*] Classes: Remove $fieldsRequired, $fieldsSize and $fieldsValidate (and lang properties) properties, use $definition instead
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11155 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -31,14 +31,23 @@ class GroupReductionCore extends ObjectModel
|
||||
public $id_category;
|
||||
public $reduction;
|
||||
|
||||
protected $fieldsRequired = array('id_group', 'id_category', 'reduction');
|
||||
protected $fieldsValidate = array('id_group' => 'isUnsignedId', 'id_category' => 'isUnsignedId', 'reduction' => 'isPrice');
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @see ObjectModel::$definition
|
||||
*/
|
||||
public static $definition = array(
|
||||
'table' => 'group_reduction',
|
||||
'primary' => 'id_group_reduction',
|
||||
'fields' => array(
|
||||
'id_group' => array('type' => 'FILL_ME', 'validate' => 'isUnsignedId', 'required' => true),
|
||||
'id_category' => array('type' => 'FILL_ME', 'validate' => 'isUnsignedId', 'required' => true),
|
||||
'reduction' => array('type' => 'FILL_ME', 'validate' => 'isPrice', 'required' => true),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
protected static $reduction_cache = array();
|
||||
|
||||
public function getFields()
|
||||
|
||||
Reference in New Issue
Block a user