On Sun, May 16, 2010 at 4:26 PM, Rob Kinyon <[email protected]> wrote:

> A given resultset can have more than one "parent." There are two
> obvious scenarios - subqueries (with the as_query feature) and unions
> (via DBIx::Class::Helpers).


Ok.

The main purpose of this is to be able to back track through a query that
I'd normally write with a single call to search so to can determine what
specific condition failed -- so can generate somewhat helpful log and error
messages.   (i.e. "Why can't I access that Cd?").



> Just keep track of it on your own using an array. :)
>

By that do you mean this?

$new_rs = $rs->search( { active => 1 } );
push @saved_rs, { comment => 'Foo not active', rs => $rs };


Thanks,

-- 
Bill Moseley
[email protected]
_______________________________________________
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]

Reply via email to