pass link table details to rel_name_map for many_to_many bridges (RT#81091)
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Sat, 10 Nov 2012 23:01:59 +0000 (23:01 +0000)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Thu, 22 Nov 2012 18:55:18 +0000 (18:55 +0000)
commitda7342aeb23b35c714f73ebb732cb348045a374a
tree9674e8122f526dc7cf274ec42768a6d03774a91e
parent65f78d29c9689610ad5d5e4df36f47f8c90ecdef
pass link table details to rel_name_map for many_to_many bridges (RT#81091)

If two tables have multiple many-to-many link tables between them, the
rel_name_map coderef needs to know which link table it's naming the rel
for.
Changes
lib/DBIx/Class/Schema/Loader/Base.pm
lib/DBIx/Class/Schema/Loader/RelBuilder.pm
t/46relationships_multi_m2m.t [new file with mode: 0644]
t/lib/make_dbictest_db_multi_m2m.pm [new file with mode: 0644]