in reply to DBI::Class relationship naming
Is this exactly the code you are running? If so, you probably are missing a 's'
my $t1_rs = $schema->resultset('T1'); $query_rs = $t1_rs->search; while (my $account = $query_rs->next) { print Dumper $account->groupname->name; } # here ---^
since in your table t1 the column is named "groupnames", not "groupname".
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: DBI::Class relationship naming
by Beatnik (Parson) on Jan 01, 2017 at 08:06 UTC | |
by soonix (Chancellor) on Jan 01, 2017 at 10:20 UTC |