这是我的错误:您无法序列化或反序列化PDO实例
在syncorder.php第307行
at PDO->__sleep()
at serialize(array('origine' => 'Order of Giga-Cultures', 'order' => object(Order), 'customer' => object(Customer), 'delivery' => object(Address), 'invoice' => object(Address), 'order_carrier' => object(OrderCarrier), 'paiements' => object(PrestaShopCollection), 'message' => object(Message), 'order_details' => array(object(OrderDetail)), 'cart' => object(Cart), 'transporteur' => 'Mondial Relais'))
in syncorder.php line 307
这是我的307行:
$reponse=$this->post(
$lien,array(
'data'=>base64_encode(serialize(
array(
'origine'=>$this->l('Order of ').Configuration::get('PS_SHOP_NAME'),
'order'=>$order,
'customer'=>$customer,
'delivery'=>$delivery,
'invoice'=>$invoice,
'order_carrier'=>$order_carrier,
'paiements'=>$paiements,
'message'=>$message,
'order_details'=>$order_details,
'cart'=>$cart,
'transporteur'=>$nom_transporteur,
//'cart_products'=>$cart->getWsCartRows(),
//'customized_datas'=>$customized_datas,
)
))
)
);
请您帮我一下。我不知道怎么了
编辑:当我删除此行时,一切都很好:
'order_details' => array(object(OrderDetail)),
这是乘积$ order_details值的行:
foreach($liste_produits as $produit) $order_details[]=new OrderDetail($produit['id_order_detail']);