2012-01-18 88 views

回答

1

你應該能夠只用「_id」鍵,一些設置此在「$額外」的說法像:

 
$m = new Mongo; 
$db = $m->phpunit; 
$grid = $db->GetGridFS(); 
$grid->storeBytes("testing", array("_id" => "MYID", "filename" => "test.txt")); 

歡呼聲, 德里克

相關問題