2 package Koha::Schema::Result::BiblioFramework;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::BiblioFramework
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<biblio_framework>
22 __PACKAGE__->table("biblio_framework");
29 default_value: (empty string)
36 default_value: (empty string)
42 __PACKAGE__->add_columns(
44 { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
46 { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
53 =item * L</frameworkcode>
59 __PACKAGE__->set_primary_key("frameworkcode");
62 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
63 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KY1w7J/5cBsz9VV7QEBKPw
65 # FIXME This should not be needed, we need to add the FK at DB level
66 # It cannot be done now because the default framework (frameworkcode=='')
67 # does not exist in DB
68 __PACKAGE__->has_many(
70 "Koha::Schema::Result::MarcTagStructure",
71 { "foreign.frameworkcode" => "self.frameworkcode"},
72 { cascade_copy => 0, cascade_delete => 0 },
75 # You can replace this text with custom content, and it will be preserved on regeneration