Arbit - project tracking

PHPillow - PHP CouchDB connector

#7: Delete document method is required.

Issue revisions

  • new by BadgerMann at 2009-S-08 8:28
  • new by BadgerMann at 2009-S-08 8:28
  • assigned by kore at 2011-J-05 10:01
  • closed by kore at 2011-J-05 10:16
Type enhancement enhancement
State closed closed
Priority medium medium
Resolution implemented implemented
Assigned to kore
Scheduled for 0.6-alpha
Affected versions
Affected components
Last change Wednesday 5 January 2011 10:16:18 UTC by kore

Short description

There is no document delete method available - you can create and modify documents; but you can't delete them.

Environment

...

Steps to reproduce

...

Expected behavior

It would be beneficial if you could delete an entire document or the latest revision.

Actual behavior

...

  • Flyingmana at Wednesday 21 July 2010 00:58:16 UTC

    have attached an patch, which adds an delete function to the doc class.

    Have not tested it much till now, but in my simple case it seems to work.

    Anyone who would write an unittest for it?

  • PHPGangsta at Thursday 21 October 2010 10:50:28 UTC

    Your code seems to work, but $type is not used, so that line can be deleted.

  • kore at Wednesday 5 January 2011 10:16:18 UTC

    Implemented in revision #157.