On Mon, Jan 24, 2011 at 8:40 AM, Winfried Neessen <[email protected]>wrote:
> sub list :Path :Args( 0 )
> {
>
> ## Get object and context
> my ( $self, $c ) = @_;
>
> ## Get ResultSet
> my $rs = $c->model( 'DB::Vorgaenge' );
>
> ## Sort the ResultSet by ID
> my $search = $rs->search( undef, { order_by => 'id' } );
>
> ## Store the vorgaenge details in the stash
> $c->{ 'stash' }->{ 'vorgaenge' } = $search;
>
> }
>
I don't see anything here that would cause a WHERE cause to be added in the
first place, and the class name doesn't match the table name in your debug
output.. Are you sure this is the right code snippet?
Ronald
_______________________________________________
List: http://lists.scsys.co.uk/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]