Subject: | strange naming of the foreign keys by Rose::DB::Object::Loader |
Date: | Tue, 13 Nov 2007 14:22:22 -0600 |
To: | bug-Rose-DB-Object [...] rt.cpan.org |
From: | maxim <maxim [...] fnal.gov> |
Hi John,
I've noticed that Rose::DB::Object::Loader uses some interesting naming
shcema for foreign keys while generating them for the same table name.
For my three foreign keys ( one -to -many) pointing to the same name in
other table its generated:
foreign_keys => [
host => {
class => 'perfSONAR_PS::Utils::PingER_DB::Host',
key_columns => { ip_name_src => 'ip_name' },
},
host1 => {
class => 'perfSONAR_PS::Utils::PingER_DB::Host',
key_columns => { ip_name_hop => 'ip_name' },
},
host_obj => {
class => 'perfSONAR_PS::Utils::PingER_DB::Host',
key_columns => { ip_name_dst => 'ip_name' },
},
],
----------------
Is it possible to name them in more consistent form: ( like <refname>_<table
Show quoted text
name> )
becasue its hard to discover automaticaly what object will refer to what
key.
Thanks,
Max Grigoriev.
bug-Rose-DB-Object@rt.cpan.org