创建订单这里order_id 关联的ID找不到是怎么回事?
报错返回
“SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘order_id’ cannot be null (SQL: insert into order_items
(amount
, price
, order_id
, product_id
, product_sku_id
) values (2, 100.00, ?, 5, 4))”
断点没有返回结果、模型关联没问题
推荐文章: