Re: [CDBI] State of the DBIx::Class Class::DBI compatibility layer
Michael G Schwern <[email protected]> Tue, 11 Mar 2008 12:09:57 -0700
| Newsgroups | gmane.comp.lang.perl.modules.class-dbi |
|---|---|
| Message-ID | <[email protected]> |
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.