1 package SL::DB::RequirementSpec;
5 use SL::DB::MetaSetup::RequirementSpec;
6 use SL::Locale::String;
8 __PACKAGE__->meta->add_relationship(
10 type => 'one to many',
11 class => 'SL::DB::RequirementSpecItem',
12 column_map => { id => 'requirement_spec_id' },
15 type => 'one to many',
16 class => 'SL::DB::RequirementSpecTextBlock',
17 column_map => { id => 'requirement_spec_id' },
21 # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
22 __PACKAGE__->meta->make_manager_class;
24 __PACKAGE__->meta->initialize;
30 push @errors, t8('The title is missing.') if !$self->title;