Is this method of paging no longer valid? It has worked in previous versions of DBIC.

    my $results = $schema->resultset('mytable')->search(
        $search,
        {
            rows     => 5,
            page     => $page,
        }
    );

    my $rows          = $results->page();

    while ( my $row = $rows->next ) {
                
    }


It appears the page number is now required, or at least it works correctly, when calling page() on the result set with the page number.

    $results->page($page);

Thanks,
Tim


_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[EMAIL PROTECTED]

Reply via email to