Skip Menu |

This queue is for tickets about the DBIx-Class-Schema-Loader CPAN distribution.

Report information
The Basics
Id: 81091
Status: resolved
Priority: 0/
Queue: DBIx-Class-Schema-Loader

People
Owner: Nobody in particular
Requestors: DROLSKY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.07035



Subject: rel_name_map coderef doesn't know what table is the linking table for many_to_many relationships
I have a schema where two tables have two distinct many-to-many relationships. Without knowing what the intervening linking table is, I can't name the relationship properly. I'm going to try to hack around this somehow, but this information really need to be passed to the name generator sub.
Subject: Re: [rt.cpan.org #81091] rel_name_map coderef doesn't know what table is the linking table for many_to_many relationships
Date: Sun, 11 Nov 2012 00:13:26 +0100
To: bug-DBIx-Class-Schema-Loader [...] rt.cpan.org
From: ilmari [...] ilmari.org (Dagfinn Ilmari Mannsåker)
"Dave Rolsky via RT" <bug-DBIx-Class-Schema-Loader@rt.cpan.org> writes: Show quoted text
> I have a schema where two tables have two distinct many-to-many > relationships. Without knowing what the intervening linking table is, I > can't name the relationship properly. > > I'm going to try to hack around this somehow, but this information really > need to be passed to the name generator sub.
I've pushed a fix for this to the topic/multi-m2m-rel_name_map-rt81091 branch of the DBIC::SL git repo: git://git.shadowcat.co.uk/dbsrgits/DBIx-Class-Schema-Loader.git It still needs docs, tests and review, but should basically work. The link class, moniker and rel name are added to the hash for many_to_many rels. -- "I use RMS as a guide in the same way that a boat captain would use a lighthouse. It's good to know where it is, but you generally don't want to find yourself in the same spot." - Tollef Fog Heen
This has been merged and released in version 0.07035.