in reply to Re^4: DBI::Class relationship naming
in thread DBI::Class relationship naming
My 2 tables use different field names.. So table1 has a field identitygroupname, pointing to another table, properly mapped with a table relationship. table2 has a field identitygroups, pointing to another table, properly mapped with a table relationship.
Greetz
Beatnik
... I'm belgian but I don't play one on TV.
The belongs_to definition in DBIC::Schema::Result::T1 looks like this:my $foo = $t1->identitygroupname->name; my $bar = $t2->identitygroup->name;
I'm not sure if this is a bug in dbicdump or something on purpose. I very much doubt that this is a Postgresql issue.__PACKAGE__->belongs_to( "fieldwith", "DBIC::Schema::Result::R1", { id => "fieldwiths" }, { is_deferrable => 0, join_type => "LEFT", on_delete => "NO ACTION", on_update => "NO ACTION", }, );
Greetz
Beatnik
... I'm belgian but I don't play one on TV.
|
---|
In Section
Seekers of Perl Wisdom