Note, that the $id portion of the array MUST be a MongoId object, otherwise it will fail.
MongoDB::getDBRef
(PECL mongo >=0.9.0)
MongoDB::getDBRef — Fetches the document pointed to by a database reference
Описание
public array MongoDB::getDBRef
( array $ref
)
Параметри
- ref
-
A database reference.
Връщани стойности
Returns the document pointed to by the reference.
simon at contribute dot com
18-Sep-2011 11:35
