[-] WS : Fix xlink

[*] WS : Add entity tax_rule_groups
[*] WS : Fix ObjectModel issue
[*] WS : Delete sqlId not used
[*] WS : Fix entity configurations
[*] WS : Fix entity translated_configurations


git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13138 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
aKorczak
2012-02-08 15:42:53 +00:00
parent f4d3ca50f1
commit de544a8be4
6 changed files with 31 additions and 7 deletions
+16 -1
View File
@@ -36,9 +36,24 @@ class TranslatedConfigurationCore extends Configuration
'date_upd' => array('i18n' => true),
),
);
public static $definition = array(
'table' => 'configuration',
'primary' => 'id_configuration',
'multilang' => true,
'fields' => array(
'name' => array('type' => self::TYPE_STRING, 'validate' => 'isConfigName', 'required' => true, 'size' => 32),
'id_group_shop' => array('type' => self::TYPE_NOTHING, 'validate' => 'isUnsignedId'),
'id_shop' => array('type' => self::TYPE_NOTHING, 'validate' => 'isUnsignedId'),
'value' => array('type' => self::TYPE_STRING),
'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'),
'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'),
),
);
public function __construct($id = NULL, $id_lang = NULL)
{
$this->def = ObjectModel::getDefinition($this);
// Check if the id configuration is set in the configuration_lang table.
// Otherwise configuration is not set as translated configuration.
if ($id !== null)