Subject: | set attributes "ids" behaviour unclear |
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'(?)