usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rockers...@apache.org
Subject [14/45] incubator-usergrid git commit: Update ResourceIterator.php
Date Wed, 12 Nov 2014 01:15:19 GMT
Update ResourceIterator.php

fixed last edit had the cursor as last item I forgot to change  $result['entities'] back to
$result which I change for some testing and forgot to change back.

Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/21e3aafa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/21e3aafa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/21e3aafa

Branch: refs/heads/master
Commit: 21e3aafab8fb1a94cde873a6c02ddecca392e850
Parents: 96455ee
Author: Apps4u <jasonk@apps4u.com.au>
Authored: Sun Oct 26 17:05:03 2014 +1000
Committer: Apps4u <jasonk@apps4u.com.au>
Committed: Sun Oct 26 17:05:03 2014 +1000

----------------------------------------------------------------------
 sdks/php5/apache-usergrid/src/Api/ResourceIterator.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/21e3aafa/sdks/php5/apache-usergrid/src/Api/ResourceIterator.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/ResourceIterator.php b/sdks/php5/apache-usergrid/src/Api/ResourceIterator.php
index 643d089..5bb5432 100644
--- a/sdks/php5/apache-usergrid/src/Api/ResourceIterator.php
+++ b/sdks/php5/apache-usergrid/src/Api/ResourceIterator.php
@@ -57,13 +57,13 @@ class ResourceIterator extends BaseIterator
 
         $result = $this->command->execute();
 
-        $data = $result['entities'];
+        $data = $result;
 
         $lastItem = end($data);
 
-        $this->nextToken = $result['cursor'] ? $lastItem['uuid'] : false;
+        $this->nextToken = $result['cursor'] ? $lastItem['cursor'] : false;
 
         return $data;
     }
 
-} 
\ No newline at end of file
+} 


Mime
View raw message