我试图运行此查询:PHP MongoDB的更新与一个查询多个字段
$collection->update(
array('_id' => 'mongoIDhere'),
array(
'$set' => array("parent" => 'data'),
array("parents" => 'data')
),
array("upsert" => true)
);
但它只会更新第二“设置”参数(这是阵列(“父母” =>“数据” ))。当在两个单独的查询完成时,这些工作正常,但它们并没有 - 什么给了?!