[*] 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:
@@ -37,20 +37,25 @@ class GroupShopCore extends ObjectModel
|
||||
public $share_order;
|
||||
public $deleted;
|
||||
|
||||
protected $fieldsSize = array('name' => 64);
|
||||
protected $fieldsValidate = array(
|
||||
'active' => 'isBool',
|
||||
'share_customer' => 'isBool',
|
||||
'share_order' => 'isBool',
|
||||
'share_stock' => 'isBool',
|
||||
'name' => 'isGenericName',
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @see ObjectModel::$definition
|
||||
*/
|
||||
public static $definition = array(
|
||||
'table' => 'group_shop',
|
||||
'primary' => 'id_group_shop',
|
||||
'fields' => array(
|
||||
'active' => array('type' => 'FILL_ME', 'validate' => 'isBool'),
|
||||
'share_customer' => array('type' => 'FILL_ME', 'validate' => 'isBool'),
|
||||
'share_order' => array('type' => 'FILL_ME', 'validate' => 'isBool'),
|
||||
'share_stock' => array('type' => 'FILL_ME', 'validate' => 'isBool'),
|
||||
'name' => array('type' => 'FILL_ME', 'validate' => 'isGenericName', 'size' => 64),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
private static $assoTables = array(
|
||||
'attribute_group' => array('type' => 'group_shop'),
|
||||
'attribute' => array('type' => 'group_shop'),
|
||||
|
||||
Reference in New Issue
Block a user