[Dbix-class] Duplicate me.id in WHERE clause of simple query

Ronald J Kimball rkimball at pangeamedia.com
Mon Jan 24 20:42:35 GMT 2011


On Mon, Jan 24, 2011 at 8:40 AM, Winfried Neessen <winfried at neessen.net>wro=
te:

> sub list :Path :Args( 0 )
> {
>
>         ## Get object and context
>         my ( $self, $c ) =3D @_;
>
>         ## Get ResultSet
>         my $rs =3D $c->model( 'DB::Vorgaenge' );
>
>         ## Sort the ResultSet by ID
>         my $search =3D $rs->search( undef, { order_by =3D> 'id' } );
>
>         ## Store the vorgaenge details in the stash
>         $c->{ 'stash' }->{ 'vorgaenge' } =3D $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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20110124/95a=
d2d47/attachment.htm


More information about the DBIx-Class mailing list