Skip Menu |
 

This queue is for tickets about the DBIx-Class CPAN distribution.

Report information
The Basics
Id: 50828
Status: resolved
Priority: 0/
Queue: DBIx-Class

People
Owner: Nobody in particular
Requestors: icestar [...] inbox.ru
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.08112
Fixed in: 0.08113



Subject: Bug in DBIx::Class::ResultSet populate method
Download (untitled) / with headers
text/plain 598b
Hello! I have found a bug in populate method of DBIx::Class::ResultSet class. In the section: ## do the has_many relationships my $parent = $self->find(map {{$_=>$item->{$_}} } @pks) || $self->throw_exception('Cannot find the relating object.'); If I have multi-column primary key I get list of hashs instead of one hash from <map {{$_=>$item->{$_}} } @pks> expression and warning message "DBIx::Class::Schema::populate(): Query returned more than one row. SQL that returns multiple rows is DEPRECATED for ->find and - Show quoted text
>single at ..."
The right expression is {map {$_=>$item->{$_}} @pks}


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.