[*] 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:
@@ -36,22 +36,28 @@ class FeatureValueCore extends ObjectModel
|
||||
/** @var boolean Custom */
|
||||
public $custom = 0;
|
||||
|
||||
protected $fieldsRequired = array('id_feature');
|
||||
protected $fieldsValidate = array(
|
||||
'id_feature' => 'isUnsignedId',
|
||||
'custom' => 'isBool'
|
||||
);
|
||||
|
||||
|
||||
|
||||
protected $fieldsRequiredLang = array('value');
|
||||
protected $fieldsSizeLang = array('value' => 255);
|
||||
protected $fieldsValidateLang = array('value' => 'isGenericName');
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @see ObjectModel::$definition
|
||||
*/
|
||||
public static $definition = array(
|
||||
'table' => 'feature_value',
|
||||
'primary' => 'id_feature_value',
|
||||
'multilang' => true,
|
||||
'fields' => array(
|
||||
'id_feature' => array('type' => 'FILL_ME', 'validate' => 'isUnsignedId', 'required' => true),
|
||||
'custom' => array('type' => 'FILL_ME', 'validate' => 'isBool'),
|
||||
'value' => array('type' => 'FILL_ME', 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 255),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
protected $webserviceParameters = array(
|
||||
'objectsNodeName' => 'product_feature_values',
|
||||
'objectNodeName' => 'product_feature_value',
|
||||
|
||||
Reference in New Issue
Block a user