On 6/29/06, Daniel McBrearty <[EMAIL PROTECTED]> wrote:
> and seeing the docs for Loader::Base ... it looks like {relationships
> => 1} gives 1-1 and 1-many but not many-many relationships. so maybe
> that's the better reason for manual definition ... ?
>

That too :)  It does find the two rels (1-m and m-1) involved in the
many-many, it just doesn't hook them together into the third many-many
rel.

Having it do this automatically is on the TODO list, along with
implicit rels ( Stuff like: bar belongs_to foo (via the pk), baz
belongs_to foo (via the pk), therefore bar might_have baz and baz
might_have bar ).  In both cases, the issue is that the heuristics for
finding them might find lots and lots of inferred relationships you
didn't expect or desire really.  I don't think it will be so bad as
long as we keep things down to just two hops though.

Before the Schema::Loader's RelBuilder gains these new abilities
though, I'd first like to get it fully unhooked from the rest of
Schema::Loader so it can be used on normal schemas (and even by sqlt?)
too.

-- Brandon

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to