[Dbix-class] PATCH: Support for arbitrary SQL in relationship definition

Daniel Ruoso daniel at ruoso.com
Wed Jun 10 20:23:16 GMT 2009


Hi,

For some reason this patch is sitting on my local git copy for a while,
and now I'm not sure it was even sent at some point... /me--

So, here goes a patch against current 0.08 trunk to support arbitrary
SQL in the join condition with an included test, which allow something
like:

__PACKAGE__->has_many(
    cds_90s => 'DBICTest::Schema::CD',
    { 'foreign.artist' => 'self.artistid',
      'foreign.year' => \"LIKE '19%'" }
);

daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Implements-arbitrary-conditions-in-joins.patch
Type: application/mbox
Size: 4130 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20090610/b99540f7/0001-Implements-arbitrary-conditions-in-joins.bin


More information about the DBIx-Class mailing list