usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rockers...@apache.org
Subject [26/45] incubator-usergrid git commit: fix iterator I still had last sdks responses not usergrid now iterator will work on entities not the whole result which is why responseType is now model in all descriptors
Date Wed, 12 Nov 2014 01:15:31 GMT
fix iterator I still had last sdks responses not usergrid now iterator will work on entities
not the whole result which is why responseType is now model in all descriptors

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

Branch: refs/heads/master
Commit: b79f61538272c1126000f8fcd023d432f107a7a8
Parents: 4bd2360
Author: Apps4u <jasonk@apps4u.com.au>
Authored: Fri Oct 31 17:34:25 2014 +1000
Committer: Apps4u <jasonk@apps4u.com.au>
Committed: Fri Oct 31 17:34:25 2014 +1000

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


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/b79f6153/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 be3d79c..9be318a 100644
--- a/sdks/php5/apache-usergrid/src/Api/ResourceIterator.php
+++ b/sdks/php5/apache-usergrid/src/Api/ResourceIterator.php
@@ -57,9 +57,7 @@ class ResourceIterator extends BaseIterator
 
         $result = $this->command->execute();
 
-        $data = $result;
-
-        $lastItem = end($data);
+        $data = $result['entities'];
 
         $this->nextToken = $result['cursor'] ? $result['cursor'] : false;
 


Mime
View raw message