Hello,
I am trying to reproduce the example from Rose::DB::Object::Loader
documentation (adapted for use with SQLite), and it works the way I expect.
When I dump generated classes with make_modules, I see smtg like
relationships => [
products => {
class => 'My::Corp::Product',
column_map => { id => 'vendor_id' },
type => 'one to many',
},
....
However, when I use pretty much the same code with my own database, I am
getting foreign_keys instead:
foreign_keys => [
user_obj => {
class => 'Ccdd::User',
key_columns => { user => 'user' },
},
],
....
which is probably wrong and won't work.
I wonder how the module decides about foreign keys over relationships.
Thank you,
--
Iļja Ketris | iPro SIA | +371 800 IPRO
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object