Revision edf74310
Von Bernd Bleßmann vor 7 Monaten hinzugefügt
SL/DB/File.pm | ||
---|---|---|
18 | 18 |
); |
19 | 19 |
|
20 | 20 |
__PACKAGE__->meta->add_relationship( |
21 |
file_version => {
|
|
21 |
file_versions => {
|
|
22 | 22 |
type => 'one to many', |
23 | 23 |
class => 'SL::DB::FileVersion', |
24 | 24 |
column_map => { id => 'file_id' }, |
... | ... | |
28 | 28 |
|
29 | 29 |
__PACKAGE__->meta->initialize; |
30 | 30 |
|
31 |
__PACKAGE__->attr_sorted({unsorted => 'file_version', position => 'version'}); |
|
31 |
__PACKAGE__->attr_sorted({unsorted => 'file_versions', position => 'version'});
|
|
32 | 32 |
|
33 | 33 |
1; |
34 | 34 |
__END__ |
Auch abrufbar als: Unified diff
S:D:File: Beziehung zu Version im Plural (file_versions)