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