Skip many_to_many bridges involving might_have relationships
authorD. Ilmari Mannsåker <ilmari.mannsaker@net-a-porter.com>
Mon, 16 Sep 2013 11:19:09 +0000 (12:19 +0100)
committerD. Ilmari Mannsåker <ilmari.mannsaker@net-a-porter.com>
Mon, 16 Sep 2013 12:45:06 +0000 (13:45 +0100)
commite3c0a681dd2a328998f4176c2a3cca364295b771
treed1a0647610642eb4aafa1e8cc0776a9b7c25ddec
parent4591a4fff466d291cb7f597dcf829f87df5852d8
Skip many_to_many bridges involving might_have relationships

If one or both of the relationsips is a one-to-one relatiohip,
the bridge should be one-to-many or one-to-one, respectively.

However, DBIx::Class doesn't support such bridges, so skip them
for now, keeping the option open to add support if/when DBIC does,
without having to worry about back-compat shenanigans.

This reverts commit b0cdc8a5bc6db9206a53e52bd9c868ba8442ca2b
and fixes the crash differently.
Changes
lib/DBIx/Class/Schema/Loader/RelBuilder.pm
t/lib/dbixcsl_common_tests.pm