[Dbix-class] "Deletion" of records by setting status to 'deleted'
Dmitry Latin
dim0xff at gmail.com
Tue Mar 10 09:45:50 GMT 2015
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
More information about the DBIx-Class
mailing list