>>>>> "Bill" == Bill Moseley <[email protected]> writes:
Bill> Would it be safe to use the resultset's current alias?
Bill> sub limit_by_id {
Bill> my ($rs , $id ) = @_;
Bill> my $alias = $rs->{attrs}{alias};
Bill> return $rs->search({ "$alias.id" => $id } );
Bill> }
Yes, there's a method for that though, $rs->current_source_alias
--
Eden Cardim Need help with your perl Catalyst or DBIx::Class
project?
Software Engineer http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment
platform?
http://blog.edencardim.com http://www.shadowcat.co.uk/servers/
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]