mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
added dbref clarification
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@299699 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
74a3aaff8c
commit
f41e046afe
1 changed files with 11 additions and 0 deletions
|
@ -80,6 +80,17 @@ $people->insert(array("name" => "Fred", "likes" => array($trainRef, $soccerRef))
|
|||
]]>
|
||||
</programlisting>
|
||||
</para>
|
||||
<para>
|
||||
Database references can be thought of as hyperlinks: they give the unique
|
||||
address of another document, but they do not load it or automatically follow
|
||||
the link/reference.
|
||||
</para>
|
||||
<para>
|
||||
A database reference is just a normal associative array, not an instance of
|
||||
<classname>MongoDBRef</classname>, so this class is a little different than
|
||||
the other data type classes. This class contains exclusively static methods
|
||||
for manipulating database references.
|
||||
</para>
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
|
|
Loading…
Reference in a new issue