[Dbix-class] Feature request: complex join

Peter Rabbitson rabbit+dbic at rabbit.us
Tue Jul 5 08:01:23 GMT 2011


BOn Mon, Jul 04, 2011 at 08:22:06PM -0300, Eden Cardim wrote:
> >>>>> "Dmitry" == Dmitry Belyavsky <beldmit at gmail.com> writes:
> 
>     Dmitry> Greetings!
>     Dmitry> I want to add a custom has_many relation with comlex join. I use the
>     Dmitry> PostgreSQL, so the condition should look like me.email =>
>     Dmitry> ANY(foreign.emails), but now DBIx::Class does not support such join.
>     Dmitry> Is it possible to implement such join conds?
> 
> You might want to look at the 0.08190_01 trial release which adds the
> ability to create relationships based on arbitrary joins. Specifically:
> 
> http://beta.metacpan.org/module/FREW/DBIx-Class-0.08190_01/lib/DBIx/Class/Relationship/Base.pm
> 
> Although I'm not sure what the current state of that feature is.

Erm... given we since had 0.08191 and 0.08192, and they both contain this in
the CHANGES file, I'd say the feature is fine and shipped :))

Cheers!



More information about the DBIx-Class mailing list