Commit: a22e97157f3011866e12c89df1626495d3e25e6f

Author: gwoo | Date: 2009-12-07 23:07:24 -0800
fixing some usage in Paste model
diff --git a/models/Paste.php b/models/Paste.php index 3c8c917..844c91e 100644 --- a/models/Paste.php +++ b/models/Paste.php @@ -82,8 +82,8 @@ class Paste extends \lithium\data\Model { parent::__init($options); $self = static::_instance(); $self->_finders['count'] = function($self, $params, $chain) { - $result = Connections::get('default')->get( - Paste::meta('source') . '/_design/paste/_view/count' + $result = Connections::get($self::meta('connection'))->get( + $self::meta('source') . '/_design/paste/_view/count' ); if (empty($result->total_rows)) { return 0; diff --git a/tests/integration/PasteTest.php b/tests/integration/PasteTest.php index 413b032..ca0a39f 100644 --- a/tests/integration/PasteTest.php +++ b/tests/integration/PasteTest.php @@ -174,7 +174,6 @@ class PasteTest extends \lithium\test\Unit { protected function _taskFillTableFull() { $data = array( 'id' => 'a1', - 'rev' => '1-1', 'author' => 'alkemann', 'created' => '2009-01-01 01:01:10', 'language' => 'text',