First Rose DB rocks!

I am following the canoical method of auto init like this -

__PACKAGE__->meta->table("footable");
__PACKAGE__->meta->auto_initialize;

But it does not pick up the foreign keys, since the table -> class mapping does not follow the convention.

I tried adding:
__PACKAGE__->meta->foreign_key( ffkey => [ .......] )

or
__PACKAGE->meta->add_foreign_key

resulting in various complaints in redefining methods or unknown methods.

If you can suggest a way to do that it would really make my mapping modules auto-magical since I really would like to use auto_initialize.

thanks!

- r
-------------------------------------------------------------------------
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

Reply via email to