[Dbix-class] coercing Result objects
Dave Howorth
dhoworth at mrc-lmb.cam.ac.uk
Mon Nov 26 10:54:27 GMT 2012
Aaron Trevena wrote:
> This sounds like the problem that this recipe in the cookbook tries to
> solve : http://search.cpan.org/~getty/DBIx-Class-0.08204/lib/DBIx/Class/Manual/Cookbook.pod#Dynamic_Sub-classing_DBIx::Class_proxy_classes
Hi Aaron,
Thanks for taking a look. It's a similar problem but I don't think it's
quite the same. I discovered that the prototype code I posted worked
pretty much straight away, so I've just implemented a method like that
in each class. All the squirly little differences between the individual
tables make it difficult for me to think there's going to be a general
solution, so I've moved on to other things.
> This is something I'm looking at myself (search results spanning
> tables via a big union ( DBIx::Class::Helpers has a helper for that
> too btw)
>
> I might not fully understand what you're doing, hopefully that's some help tho.
Yeah, the big union is a very useful feature for my situation. I'm glad
I discovered it on this list ages ago :)
Cheers, Dave
More information about the DBIx-Class
mailing list