Arbit - project tracking

PHPillow - PHP CouchDB connector

#13: Using include_docs parameter is not possible

Issue attachments

Issue revisions

  • new by PHPGangsta at 2010-N-08 13:47
  • new by PHPGangsta at 2010-N-08 13:47
  • assigned by kore at 2011-J-05 10:21
  • closed by kore at 2011-J-05 10:21
Type enhancement enhancement
State closed closed
Priority low low
Resolution implemented implemented
Assigned to kore
Scheduled for 0.6-alpha
Affected versions 0.5-alpha
Affected components Core
Last change Wednesday 5 January 2011 10:21:22 UTC by kore

Short description

When querying a view there is a parameter "include_docs" to also get the document that corresponds to a result row.

http://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options

Steps to reproduce

$results = App_View::all(array('include_docs' => true));

Expected behavior

Getting the view results with a "doc" elements inside the "rows" array that contains the document.

Actual behavior

I get a phpillowNoSuchPropertyException saying that "Property 'include_docs' is not available."

  • PHPGangsta at Monday 8 November 2010 13:48:57 UTC

    Patch attached (only one line added)

  • kore at Wednesday 5 January 2011 10:21:22 UTC

    Implemented in revision #158.