Loader and relationships

[prev] [thread] [next] [Date index for 2005/03/14]

From: Andreas Fromm
Subject: Loader and relationships
Date: 15:40 on 14 Mar 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

finaly I got the time to look at the new relationship identification
stuff in CDBI::Loader. Nice work!

The thing I'm missing is the posibility to let Loader just set up some
of the relations, e.g. only the has_a relations, because some of my
tables links to another tables many times (Person:phone_home->
PhoneNumbers, Person:phone_work-> PhoneNumbers, ...). In this case the
automatic registration of the has_many relationships fail.

Maybe an aditionl argument could be passed to CDBI::Loader->new to
specify which type of relationships should be set up automatically.
Maybe, -relationships could accept a listref with the kind of
relationships it should set up, e.g.

$loader = CDBI::Loader->new(
~   ...
~   relationships => [has_a], # | [has_a, has_many] | [has_a, might_have]
~   ...
);

Has anybody another sugestion to make the relationship stuff more flrxible?

- --
Grüße,

Andreas Fromm

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCNbBuUmBtSMq5cGURApyQAKC8DD+1RrRwAoJp2jySJeQ1ot6OegCgj8pm
Qw/JnDRKY3Irc8kRPXBG8Yc=
=DEhz
-----END PGP SIGNATURE-----

Loader and relationships
Andreas Fromm 15:40 on 14 Mar 2005

Re: Loader and relationships
Sebastian Riedel 18:46 on 14 Mar 2005

Re: Loader and relationships
Torsten Seemann 04:15 on 16 Mar 2005

Generated at 21:05 on 16 Mar 2005 by mariachi v0.52