On Tue, Jan 5, 2010 at 6:22 AM, John Napiorkowski <[email protected]> wrote:

>
>
>
> Take a look at DBIx::Class::Schema::RestrictWithObject since I think that
> was written to help with these kinds of trouble, might help. --john
>

Thanks John.  I'm not clear how that might apply in this case.  I need to
hook into DBIx::Class::Storage::Replicated to determine when it selects the
master vs. the slaves.

I've looked at RestrictWithObject before and I can see at some level how it
would be helpful to enforce a criteria on a search, but calling methods on
the objects seems cleaner to me (or use search_related) so never looked that
closely at it.  Maybe it does more than I thought.





-- 
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