Bug 8798: DBIx::Class base classes for all Koha tables
[koha.git] / Koha / Schema / Result / OaiSetsBiblio.pm
1 package Koha::Schema::Result::OaiSetsBiblio;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use base 'DBIx::Class::Core';
10
11
12 =head1 NAME
13
14 Koha::Schema::Result::OaiSetsBiblio
15
16 =cut
17
18 __PACKAGE__->table("oai_sets_biblios");
19
20 =head1 ACCESSORS
21
22 =head2 biblionumber
23
24   data_type: 'integer'
25   is_foreign_key: 1
26   is_nullable: 0
27
28 =head2 set_id
29
30   data_type: 'integer'
31   is_foreign_key: 1
32   is_nullable: 0
33
34 =cut
35
36 __PACKAGE__->add_columns(
37   "biblionumber",
38   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
39   "set_id",
40   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
41 );
42 __PACKAGE__->set_primary_key("biblionumber", "set_id");
43
44 =head1 RELATIONS
45
46 =head2 biblionumber
47
48 Type: belongs_to
49
50 Related object: L<Koha::Schema::Result::Biblio>
51
52 =cut
53
54 __PACKAGE__->belongs_to(
55   "biblionumber",
56   "Koha::Schema::Result::Biblio",
57   { biblionumber => "biblionumber" },
58   { on_delete => "CASCADE", on_update => "CASCADE" },
59 );
60
61 =head2 set
62
63 Type: belongs_to
64
65 Related object: L<Koha::Schema::Result::OaiSet>
66
67 =cut
68
69 __PACKAGE__->belongs_to(
70   "set",
71   "Koha::Schema::Result::OaiSet",
72   { id => "set_id" },
73   { on_delete => "CASCADE", on_update => "CASCADE" },
74 );
75
76
77 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
78 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UkR8n4x6yZOGCMP10KvnRg
79
80
81 # You can replace this text with custom content, and it will be preserved on regeneration
82 1;