Definition at line 5 of file CartProduct.php.
Definition at line 7 of file CartProduct.php.
10 $result = self::$dbo->exec(
"CREATE TABLE IF NOT EXISTS `{$dbPrefix}cart_product` (
11 `cart_id` INTEGER(11) UNSIGNED NOT NULL,
12 `product_id` INTEGER(11) UNSIGNED NULL,
13 `quantity` INTEGER(10) UNSIGNED NOT NULL,
14 FOREIGN KEY (`cart_id`) REFERENCES `{$dbPrefix}cart`(id),
15 FOREIGN KEY (`product_id`) REFERENCES `{$dbPrefix}product`(id),
16 UNIQUE(`cart_id`, `product_id`)
18 if ($result ===
false)
19 throw new \Exception(get_class().
": ".self::$dbo->errorInfo()[2]);
The documentation for this class was generated from the following file: