Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision dc5f7965

Von Sven Schöling vor mehr als 10 Jahren hinzugefügt

  • ID dc5f7965f497eae8ea6531185acca03a61cd0820
  • Vorgänger 013804fd
  • Nachfolger 35bd55ae

Manager für Projekt Status

Unterschiede anzeigen:

SL/DB/ProjectStatus.pm
1
# This file has been auto-generated only because it didn't exist.
2
# Feel free to modify it at will; it will not be overwritten automatically.
3

  
4 1
package SL::DB::ProjectStatus;
5 2

  
6 3
use strict;
7 4

  
8 5
use SL::DB::MetaSetup::ProjectStatus;
6
use SL::DB::Manager::ProjectStatus;
7

  
8
use SL::DB::Helper::ActsAsList;
9

  
10
__PACKAGE__->meta->add_relationship(
11
  projects => {
12
    type         => 'many to one',
13
    class        => 'SL::DB::Project',
14
    column_map   => { id => 'project_status_id' },
15
  },
16
);
17

  
18
__PACKAGE__->meta->initialize;
19

  
20
sub validate {
21
  my ($self) = @_;
22

  
23
  my @errors;
24
  push @errors, $::locale->text('The description is missing.') if !$self->description;
9 25

  
10
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
11
__PACKAGE__->meta->make_manager_class;
26
  return @errors;
27
}
12 28

  
13 29
1;

Auch abrufbar als: Unified diff