Skip Menu |
 

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

Report information
The Basics
Id: 76635
Status: new
Priority: 0/
Queue: DBIx-Class-Fixtures

People
Owner: Nobody in particular
Requestors: fs5 [...] sanger.ac.uk
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.001015
Fixed in: (no value)



Subject: set attributes "ids" behaviour unclear
Download (untitled) / with headers
text/plain 738b
According to the POD, the "ids" set attribute results in a 'find' against the primary key of the table. I tried to do this with a varchar PK and got this error: DBIx::Class::Migration::Script::run_with_options(): Non-numeric value supplied for column 'id' despite the numeric datatype So it seems that this will only work for numeric PKs. Maybe all that is needed is some clarification in the POD but then again I'm not sure why it would have to limit the datatype at all? Maybe that was not intended? How about renaming the attribute to "pks" instead and the array contains values for the primary key in whatever data type it is in? Or the attribute could be "unique_keys with a hashref of key name and values to populate a 'find'(?)


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.