[CDBI] State of the DBIx::Class Class::DBI compatibility layer

Michael G Schwern schwern at pobox.com
Tue Mar 11 19:09:57 GMT 2008

Matt S Trout wrote:
> On Thu, Feb 14, 2008 at 12:48:58PM -0800, Michael G Schwern wrote:
>> Matt S Trout wrote:
>>> I was considering making this work for DBIC by being able to say "delay
>>> relationship setup until I tell you I've got everything loaded".
>> How about just delaying it until the primary keys of the foreign class are 
>> declared?
> Hmm. We never try to do inference on anything else, so there's probably
> no harm in that.
> Write me some TODO tests and I'll have a play :)

t/cdbi-t/hasa_without_loading.t is that.

It looks like maybe there can be a "delayed" type accessor that replaces 
itself with the real accessor when called?

Hating the web since 1994.

More information about the ClassDBI mailing list