On Fri, Nov 09, 2012 at 01:41:31PM +0100, Theo Bot wrote:
> Hi,
> 
> Can anybody tell me what is wrong with this?
> $rs = $schema->resultset("Location")->search(
>         {
>             name =>  { like => '%' },
>         },
>         {
>             order_by => 'location_id',
>             rows => 2,
>         }
>     );
> 
> 
> I get:
> Can't use an undefined value as an ARRAY reference at
> /opt/TestProject/platform/Linux/x86_64/lib/perl5/site_perl/5.16.0/DBIx/Class/Storage/DBIHacks.pm
> line 70. at
> /opt/TestProject/platform/Linux/x86_64/lib/perl5/site_perl/5.16.0/DBIx/Class/Schema.pm
> line 1101.

Please trap the error right then and there, and without any further 
alterations to the $rs get me the output of:

 use Devel::Dwarn;
 Dwarn [ $rs->_resolved_attrs ];

This will be a *lot* of output - I need all of it.

Cheers

_______________________________________________
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/dbix-class@lists.scsys.co.uk

Reply via email to