Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

DBI::Class relationship naming

by Beatnik (Parson)
on Dec 30, 2016 at 22:00 UTC ( #1178698=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    CREATE TABLE r1
    ( id integer,
    ...
      groupname integer REFERENCES r2(id),
      PRIMARY KEY (id)
    );
    
  2. or download this
    use lib qw(lib);
    use DBIC::Schema;
    ...
    $query_rs = $t2_rs->search;
    while (my $account = $query_rs->next)
    { print Dumper $account->groupname->name; }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1178698]
Approved by beech
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2020-04-03 11:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (27 votes). Check out past polls.

    Notices?