Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d2b3f1ee

Von Bernd Bleßmann vor 27 Tagen hinzugefügt

  • ID d2b3f1eee5ca6b22357c35c15cb5079c080876c7
  • Vorgänger 60e0cecf
  • Nachfolger 7dd981c4

S:D:StockCounting: Rose-Beziehung zu Items

Unterschiede anzeigen:

SL/DB/StockCounting.pm
12 12

  
13 13
use SL::Locale::String qw(t8);
14 14

  
15
__PACKAGE__->meta->add_relationship(
16
  stock_counting_items => {
17
    type         => 'one to many',
18
    class        => 'SL::DB::StockCountingItem',
19
    column_map   => { id => 'counting_id' },
20
  },
21
);
22

  
15 23
__PACKAGE__->meta->initialize;
16 24

  
25
sub items     { goto &stock_counting_items; }
26
sub add_items { goto &add_stock_counting_items; }
27

  
17 28
sub validate {
18 29
  my ($self) = @_;
19 30

  

Auch abrufbar als: Unified diff