[Dbix-class] rows error
Peter Rabbitson
rabbit+dbic at rabbit.us
Fri Nov 9 14:05:32 GMT 2012
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
More information about the DBIx-Class
mailing list