On 1/15/07 6:28 PM, Cory Bennett wrote: >> __PACKAGE__->meta->auto_initialize; >> __PACKAGE__->meta->relationships( >> product_details => { >> type => 'one to many', >> class => 't::ProductDetail', >> column_map => { id => 'product_id' }, >> } >> ); > > In your case you are initializing before setting up your relationships. If > you move your auto_initialize after the relationships call, then it should > work fine.
Yes, exactly. Relationships, columns, foreign keys, and such are just inert metadata. The initialize() method and friends read that metadata and create the actual methods based on it. -John ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object