Henry Drinkwater wrote:
Hi,

I am trying to create a might_have join condition in DBIx::Class where I want to add a value comparison as well as having matching values in the foreign and self columns. To give an example, suppose I have two tables:

I too would love to be able to do this.

but couldn't find anything that worked - I get an exception thrown like this:

Invalid rel cond val HASH(0x94a79c)

for all the things I tried. Is this kind of join possible and if so what is the right syntax?

I've looked for the error in the DBIC code and it doesn't support parsing such relations...

Is this an oversight and no-one else has had that particular itch, or is there reason for not implementing it?

Rob

--
Robert Loomans                                  Email: [EMAIL PROTECTED]
Senior Software Engineer, APNIC                 Phone:   +61 7 3858 3100
http://www.apnic.net                              Fax:   +61 7 3858 3199

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
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