Help for this page

Select Code to Download


  1. or download this
    Table PROJECT
       id (primary key for the table)
    ...
       id (primary key for the table)
       account_id (reference to ACCOUNT.id)
       ...
    
  2. or download this
    Quota->belongs_to(account => 'Account');
    Account->belongs_to(project => 'Project');
    
  3. or download this
    my $project_from_quota = $quota->account()->project();
    
  4. or download this
    package Quota;
    sub project { return shift->account()->project() }
    #...
    my $project_from_quota = $quota->project();