downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

MongoDB::getGridFS> <MongoDB::__get
[edit] Last updated: Fri, 25 May 2012

view this page in

MongoDB::getDBRef

(PECL mongo >=0.9.0)

MongoDB::getDBRefデータベース参照が指すドキュメントを取得する

説明

public array MongoDB::getDBRef ( array $ref )

パラメータ

ref

データベース参照。

返り値

参照が指すドキュメントを返します。

例1 MongoDB::getDBRef() の例

この例は、データベース参照を取得してその入力が何であるかを知る方法を示します。

<?php

 $ref 
= array(
   
'$ref' => 'profiles',
   
'$id' => '47cc67093475061e3d9536d2'
 
);
 
 
$profile $db->getDBRef($ref);
 
?>

データベース参照を作る方法についての詳細な情報は MongoDB::createDBRef() を参照ください。



add a note add a note User Contributed Notes MongoDB::getDBRef
simon at contribute dot com 18-Sep-2011 11:35
Note, that the $id portion of the array MUST be a MongoId object, otherwise it will fail.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites