Aside form that, my failing tests come down to this hack:
> $options->{'distinct'} = 1;
> if (defined $options->{'join'}) {
> if (!ref $options->{'join'} || ref $options->{'join'} eq 'HASH') {
> $options->{'join'} = [$options->{'join'}];
> };
> } else {
> $options->{'join'} = [];
> };
> push @{$options->{'join'}}, {'map_user_role' => 'user'};
The hashes in an array trick used to work: join => [ {}, {} ]
Now it doesn't...this fixes my issue: join => {}
But causes havoc if the user has already supplied a value for join...
Is this a don't do that, or an it still still work-ism?
-=Chris
signature.asc
Description: OpenPGP digital signature
_______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class Wiki: http://dbix-class.shadowcatsystems.co.uk/ IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/ Searchable Archive: http://www.mail-archive.com/[email protected]/
