Permalink
Browse files

reading row[doc]

  • Loading branch information...
1 parent d1e2f3b commit 6871458f0bc44ae94f18c064a2fe00b960cb0057 @maxwellium committed Apr 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Model/Datasource/CouchDBSource.php
@@ -422,7 +422,7 @@ public function read(Model &$model, $queryData = array(), $recursive = null) {
// a collection of documents is requested
if (isset($response['body']['rows']) && !empty($response['body']['rows'])){
foreach($response['body']['rows'] as $row) {
- $result[] = array($model->alias => $row);
+ $result[] = array($model->alias => $row['doc']);
}
}
}

0 comments on commit 6871458

Please sign in to comment.