From 07e724fa0a496c855f0e119c138632d67513cecd Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Fri, 5 Oct 2012 21:00:35 +0000 Subject: [PATCH] MongoGridFSCursor::key() returns _id instead of filename since 1.3.0 https://jira.mongodb.org/browse/PHP-471 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327891 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/mongogridfscursor/key.xml | 29 ++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/reference/mongo/mongogridfscursor/key.xml b/reference/mongo/mongogridfscursor/key.xml index 471a6421b5..4c43827f10 100644 --- a/reference/mongo/mongogridfscursor/key.xml +++ b/reference/mongo/mongogridfscursor/key.xml @@ -23,9 +23,36 @@ &reftitle.returnvalues; - The current result's filename. + The current result's _id as a string. + + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 1.3.0 + + The document's _id is returned as a string value, + since the key should be unique. Pre-1.3.0, filename + was returned. + + + + + + + +