Leser: 12
1 2 3 4 5 6
# rufe Produkt ab, dass ein Feld 'vendor_id' hat, # welches auf die Tabelle `vendors` zeigt, die aus # 'id' und 'name' besteht $p = Product->new(id => 1)->load; $v = $p->vendor; # Vendor object print $v->name; # "Acme"
QuoteWhile it's possible to define foreign keys in a Rose::DB::Object-derived class even if there is no support for them in the database, this is considered bad practice