Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "Fixed the calls for save and reload collection"

This reverts commit c00fc0d.
  • Loading branch information...
commit 53d681e4efdbf15390dc144ff3ac19ec7d01d9cc 1 parent c28fa6c
Bahtiar `kalkin-` Gadimov authored committed
Showing with 2 additions and 4 deletions.
  1. +2 −4 JForg/Dodb/Adapter/Couchdb.php
6 JForg/Dodb/Adapter/Couchdb.php
View
@@ -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();
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.