(PECL mongo >= 0.9.0)
MongoDBRef::get — ��ȡ������ָ��Ķ���
This extension that defines this class is deprecated. Instead, the MongoDB extension should be used. There is no equivalent for this class in the new extension.
���ݿ����ã�database reference�� �ĸ�����Ҵ����Ѿ������á�
db
ʹ�õ����ݿ⡣
ref
Ҫ��ȡ�����á�
��������ָ����ĵ�������ĵ��������� NULL
��������������
Example #1 MongoCollection::createDBRef() ����
<?php
// �� db ��ȡ $person��
$person = $people->findOne();
// �������õ� address
$address = MongoDBRef::get($people->db, $person['address']);
?>