diff --git a/Build/UnitTestsBootstrap.php b/Build/UnitTestsBootstrap.php index 5b5bbd00..d2cd5570 100644 --- a/Build/UnitTestsBootstrap.php +++ b/Build/UnitTestsBootstrap.php @@ -1,4 +1,5 @@ cart); + return unserialize($this->serializedCart); } public function setCart(Cart\Cart $cart): void { - $this->cart = serialize($cart); + $this->serializedCart = serialize($cart); } /** diff --git a/Configuration/TCA/tx_cart_domain_model_cart.php b/Configuration/TCA/tx_cart_domain_model_cart.php index 4762e662..72d425c8 100644 --- a/Configuration/TCA/tx_cart_domain_model_cart.php +++ b/Configuration/TCA/tx_cart_domain_model_cart.php @@ -22,7 +22,7 @@ 'types' => [ '1' => [ 'showitem' => - 'pid, f_hash, s_hash, fe_user, was_ordered, order_item, cart', + 'pid, f_hash, s_hash, fe_user, was_ordered, order_item, serialized_cart', ], ], 'palettes' => [ @@ -90,9 +90,9 @@ 'maxitems' => 1, ], ], - 'cart' => [ + 'serialized_cart' => [ 'exclude' => 0, - 'label' => $_LLL . ':tx_cart_domain_model_cart.cart', + 'label' => $_LLL . ':tx_cart_domain_model_cart.serialized_cart', 'config' => [ 'type' => 'text', 'cols' => 48, diff --git a/ext_tables.sql b/ext_tables.sql index f471d885..acc70928 100644 --- a/ext_tables.sql +++ b/ext_tables.sql @@ -251,7 +251,7 @@ CREATE TABLE tx_cart_domain_model_cart ( order_item int(11) unsigned DEFAULT '0' NOT NULL, - cart text, + serialized_cart text, was_ordered tinyint(4) unsigned DEFAULT '0' NOT NULL,