[Dbix-class] DBIx::Class::Schema::Loader limitations

Daniel McBrearty danielmcbrearty at gmail.com
Thu Jun 29 23:40:29 CEST 2006


thanks for the clarification. yes, I can see why it is this way.

OK, I'll do what I know and am comfortable with then ... cheers!


On 6/29/06, Brandon Black <blblack at gmail.com> wrote:
> On 6/29/06, Daniel McBrearty <danielmcbrearty at gmail.com> 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/dbix-class@lists.rawmode.org/
>


-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131



More information about the Dbix-class mailing list