Re: What relationships does a class have?
[prev]
[thread]
[next]
[Date index for 2005/03/15]
sean,
CDBI classes generally have the relationships that you define for them
via has_a, has_many, etc... I've not used any of the *::Loaders, but
I think that auto-discovery of table relationships is relatively
experimental (?)
as for methods, you can assume that all of the columns in your tables
become accessors and mutators in your classes ( setting up
relationships complicates this by turning some of the values your
accessors return into objects, i.e. foreign keys)
- james
On Tue, 15 Mar 2005 09:52:56 -0500, Sean Davis <sdavis2@xxxx.xxx.xxx> wrote:
> I am using CDBI::Loader on a rather large schema and wondered if there
> is a way to get the relationships (or even methods) that a class has?
> I imagine there is, but I haven't found it.
>
> Thanks,
> Sean
>
>
--
.--- .- -- . ... -.-- --- ---
|
|
Re: What relationships does a class have?
.--- .- -- . ... 15:15 on 15 Mar 2005
|