Use the more verbose search syntax in previous_sibling.
Aran Deltac [Thu, 23 Mar 2006 17:40:14 +0000 (17:40 +0000)]
lib/DBIx/Class/Positioned.pm

index 7619d5a..b9370b2 100644 (file)
@@ -157,7 +157,7 @@ sub previous_sibling {
     my $position_column = $self->position_column;
     my $position = $self->get_column( $position_column );
     return 0 if ($position==1);
-    return ($self->search(
+    return ($self->result_source->resultset->search(
         {
             $position_column => $position - 1,
             $self->_collection_clause(),