Hi!

> First I tried to override search_rs() method in a custom resultset
> with something like this:
> https://gist.github.com/ichesnokov/1d4236f79c69fd14ebbe, but it didn't
> work as expected on prefetches with condition in them.
> 
I think this way doesn't work on prefetches because it shouldn't.

In addition to overriding search_rs, you have to provide conditions into 
relations 
(https://metacpan.org/pod/DBIx::Class::Relationship::Base#Custom-join-conditions)

-- 
//wbr, Dmitry Latin

_______________________________________________
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/dbix-class@lists.scsys.co.uk

Reply via email to