Skip to content

Commit

Permalink
Fix: Refactor models to use existing kwf-tables
Browse files Browse the repository at this point in the history
  • Loading branch information
lllHuber committed Feb 8, 2018
1 parent 20e5eec commit 160aab1
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion KwcShop/Kwc/Shop/Cart/OrderProducts.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class KwcShop_Kwc_Shop_Cart_OrderProducts extends Kwf_Model_Db
{
protected $_rowClass = 'KwcShop_Kwc_Shop_Cart_OrderProduct';
protected $_table = 'KwcShop_Kwc_Shop_order_products';
protected $_table = 'kwc_shop_order_products';
protected $_referenceMap = array(
'Order' => array(
'column' => 'shop_order_id',
Expand Down
2 changes: 1 addition & 1 deletion KwcShop/Kwc/Shop/Cart/Orders.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
class KwcShop_Kwc_Shop_Cart_Orders extends Kwf_Model_Db
{
protected $_table = 'KwcShop_Kwc_Shop_orders';
protected $_table = 'kwc_shop_orders';
protected $_rowClass = 'KwcShop_Kwc_Shop_Cart_Order';
protected $_siblingModels = array('KwcShop_Kwc_Shop_Cart_Checkout_Model');
protected $_dependentModels = array('Products'=>'KwcShop_Kwc_Shop_Cart_OrderProducts');
Expand Down
2 changes: 1 addition & 1 deletion KwcShop/Kwc/Shop/Cart/Plugins/Voucher/VoucherHistory.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
class KwcShop_Kwc_Shop_Cart_Plugins_Voucher_VoucherHistory extends Kwf_Model_Db
{
protected $_table = 'KwcShop_Kwc_Shop_voucher_history';
protected $_table = 'kwc_shop_voucher_history';

protected $_referenceMap = array(
'voucher' => array(
Expand Down
2 changes: 1 addition & 1 deletion KwcShop/Kwc/Shop/Cart/Plugins/Voucher/Vouchers.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
class KwcShop_Kwc_Shop_Cart_Plugins_Voucher_Vouchers extends Kwf_Model_Db
{
protected $_table = 'KwcShop_Kwc_Shop_vouchers';
protected $_table = 'kwc_shop_vouchers';
protected $_dependentModels = array(
'history' => 'KwcShop_Kwc_Shop_Cart_Plugins_Voucher_VoucherHistory'
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class KwcShop_Kwc_Shop_Category_Directory_ProductsToCategoriesModel
extends Kwc_Directories_Category_Directory_ItemsToCategoriesModel
{
protected $_table = 'KwcShop_Kwc_Shop_products_to_categories';
protected $_table = 'kwc_shop_products_to_categories';

protected function _init()
{
Expand Down
2 changes: 1 addition & 1 deletion KwcShop/Kwc/Shop/ProductPrices.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
class KwcShop_Kwc_Shop_ProductPrices extends Kwf_Model_Db
{
protected $_table = 'KwcShop_Kwc_Shop_product_prices';
protected $_table = 'kwc_shop_product_prices';
protected $_referenceMap = array(
'Product' => array(
'column' => 'shop_product_id',
Expand Down
2 changes: 1 addition & 1 deletion KwcShop/Kwc/Shop/Products.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class KwcShop_Kwc_Shop_Products extends Kwf_Model_Db
{
protected $_rowClass = 'KwcShop_Kwc_Shop_Product';
protected $_table = 'KwcShop_Kwc_Shop_products';
protected $_table = 'kwc_shop_products';
protected $_filters = array('pos');
protected $_dependentModels = array(
'Prices' => 'KwcShop_Kwc_Shop_ProductPrices'
Expand Down
2 changes: 1 addition & 1 deletion KwcShop/Kwc/Shop/Products/Directory/Trl/Model.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
class KwcShop_Kwc_Shop_Products_Directory_Trl_Model extends Kwf_Model_Db_Proxy
{
protected $_table = 'KwcShop_Kwc_Shop_products_trl';
protected $_table = 'kwc_shop_products_trl';
}

0 comments on commit 160aab1

Please sign in to comment.