我有以下数据结构。我可以使用where
具有正常字段的条件,但不能使用数组中的条件。
数据结构
Array
(
[AdjustmentAmount] => Array
(
[_] => 0
[currencyID] => AUD
)
[AmountPaid] => Array
(
[_] => 0
[currencyID] => AUD
)
[AmountSaved] => Array
(
[_] => 0
[currencyID] => AUD
)
[BuyerUserID] => mzkfx400
[ShippingDetails] => Array
(
[SalesTax] => Array
(
[SalesTaxPercent] => 0
[SalesTaxState] =>
[ShippingIncludedInTax] =>
[SalesTaxAmount] => Array
(
[_] => 0
[currencyID] => AUD
)
)
[ShippingServiceOptions] => Array
(
[ShippingService] => AU_Freight
[ShippingServicePriority] => 1
[ExpeditedService] =>
)
[SellingManagerSalesRecordNumber] => 60340
[GetItFast] =>
)
)
这个有效
$ebayOrder = LMongo::collection('ebay_orders')->where('BuyerUserID','mzkfx400')->first();
这不起作用
$ebayOrder = LMongo::collection('ebay_orders')->where('ShippingService','AU_Freight')->first();
所以基本上我想对数组内的字段使用 where 条件。
谢谢阿比