// Remove unused $tables property from ObjectModel + improve Cache
This commit is contained in:
@@ -147,9 +147,6 @@ class OrderCore extends ObjectModel
|
||||
*/
|
||||
public $reference;
|
||||
|
||||
|
||||
protected $tables = array ('orders');
|
||||
|
||||
protected $fieldsRequired = array('conversion_rate', 'id_address_delivery', 'id_address_invoice', 'id_cart', 'id_currency', 'id_lang', 'id_customer', 'id_carrier', 'payment', 'total_paid', 'total_paid_real', 'total_products', 'total_products_wt');
|
||||
protected $fieldsValidate = array(
|
||||
'id_address_delivery' => 'isUnsignedId',
|
||||
|
||||
@@ -55,8 +55,6 @@ class OrderCarrierCore extends ObjectModel
|
||||
/** @var string Object creation date */
|
||||
public $date_add;
|
||||
|
||||
protected $tables = array ('order_carrier');
|
||||
|
||||
protected $fieldsRequired = array ('id_order', 'id_carrier');
|
||||
protected $fieldsValidate = array (
|
||||
'id_order_carrier' => 'isUnsignedId',
|
||||
|
||||
@@ -42,8 +42,6 @@ class OrderCartRuleCore extends ObjectModel
|
||||
/** @var integer */
|
||||
public $value;
|
||||
|
||||
protected $tables = array ('order_cart_rule');
|
||||
|
||||
protected $fieldsRequired = array ('id_order', 'name', 'value');
|
||||
protected $fieldsValidate = array ('id_order' => 'isUnsignedId', 'name' => 'isGenericName', 'value' => 'isInt');
|
||||
|
||||
|
||||
@@ -129,8 +129,6 @@ class OrderDetailCore extends ObjectModel
|
||||
/** @var int Id warehouse */
|
||||
public $id_warehouse;
|
||||
|
||||
protected $tables = array('order_detail');
|
||||
|
||||
protected $fieldsRequired = array(
|
||||
'id_order',
|
||||
'id_warehouse',
|
||||
|
||||
@@ -42,8 +42,6 @@ class OrderHistoryCore extends ObjectModel
|
||||
/** @var string Object last modification date */
|
||||
public $date_upd;
|
||||
|
||||
protected $tables = array ('order_history');
|
||||
|
||||
protected $fieldsRequired = array('id_order', 'id_order_state');
|
||||
protected $fieldsValidate = array('id_order' => 'isUnsignedId', 'id_order_state' => 'isUnsignedId', 'id_employee' => 'isUnsignedId');
|
||||
|
||||
|
||||
@@ -48,8 +48,6 @@ class OrderReturnCore extends ObjectModel
|
||||
/** @var string Object last modification date */
|
||||
public $date_upd;
|
||||
|
||||
protected $tables = array ('order_return');
|
||||
|
||||
protected $fieldsRequired = array ('id_customer', 'id_order');
|
||||
protected $fieldsValidate = array('id_customer' => 'isUnsignedId', 'id_order' => 'isUnsignedId', 'question' => 'isMessage');
|
||||
|
||||
|
||||
@@ -57,8 +57,6 @@ class OrderSlipCore extends ObjectModel
|
||||
/** @var string Object last modification date */
|
||||
public $date_upd;
|
||||
|
||||
protected $tables = array ('order_slip');
|
||||
|
||||
protected $fieldsRequired = array ('id_customer', 'id_order', 'conversion_rate');
|
||||
protected $fieldsValidate = array('id_customer' => 'isUnsignedId', 'id_order' => 'isUnsignedId', 'conversion_rate' => 'isFloat');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user