Permalink
Browse files

Revert "Fixed the calls for save and reload collection"

This reverts commit c00fc0d.
  • Loading branch information...
1 parent c28fa6c commit 53d681e4efdbf15390dc144ff3ac19ec7d01d9cc @kalkin committed with Feb 15, 2010
Showing with 2 additions and 4 deletions.
  1. +2 −4 JForg/Dodb/Adapter/Couchdb.php
@@ -158,8 +158,7 @@ public function saveCollection(JForg_Dodb_Collection $collection)
{
foreach ($collection as $record )
{
- if ( $record->entry instanceof JForg_Dodb_Document )
- $record->entry->save();
+ $record->document->save();
}
}
@@ -188,8 +187,7 @@ public function reloadCollection(JForg_Dodb_Collection $collection)
{
foreach ($collection as $record )
{
- if ( $record->entry instanceof JForg_Dodb_Document )
- $record->entry->reload();
+ $record->document->reload();
}
}

0 comments on commit 53d681e

Please sign in to comment.