View | Details | Raw Unified | Return to bug 13539
Collapse All | Expand All

(-)a/Koha/Schema/Result/Borrower.pm (-17 / +2 lines)
Lines 933-953 __PACKAGE__->has_many( Link Here
933
  { cascade_copy => 0, cascade_delete => 0 },
933
  { cascade_copy => 0, cascade_delete => 0 },
934
);
934
);
935
935
936
=head2 patroncards
937
938
Type: has_many
939
940
Related object: L<Koha::Schema::Result::Patroncard>
941
942
=cut
943
944
__PACKAGE__->has_many(
945
  "patroncards",
946
  "Koha::Schema::Result::Patroncard",
947
  { "foreign.borrowernumber" => "self.borrowernumber" },
948
  { cascade_copy => 0, cascade_delete => 0 },
949
);
950
951
=head2 patronimage
936
=head2 patronimage
952
937
953
Type: might_have
938
Type: might_have
Lines 1154-1161 Composing rels: L</aqorder_users> -> ordernumber Link Here
1154
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1139
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1155
1140
1156
1141
1157
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-03-11 11:50:38
1142
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-04-13 13:23:31
1158
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4wVgO/FIFHQV+AxzXc+k8g
1143
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eNJqc7s8OA+vQIKYUryvaA
1159
1144
1160
1145
1161
# You can replace this text with custom content, and it will be preserved on regeneration
1146
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Patroncard.pm (-106 lines)
Lines 1-105 Link Here
1
use utf8;
2
package Koha::Schema::Result::Patroncard;
3
4
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7
=head1 NAME
8
9
Koha::Schema::Result::Patroncard
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<patroncards>
19
20
=cut
21
22
__PACKAGE__->table("patroncards");
23
24
=head1 ACCESSORS
25
26
=head2 cardid
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
=head2 batch_id
33
34
  data_type: 'varchar'
35
  default_value: 1
36
  is_nullable: 0
37
  size: 10
38
39
=head2 borrowernumber
40
41
  data_type: 'integer'
42
  is_foreign_key: 1
43
  is_nullable: 0
44
45
=head2 timestamp
46
47
  data_type: 'timestamp'
48
  datetime_undef_if_invalid: 1
49
  default_value: current_timestamp
50
  is_nullable: 0
51
52
=cut
53
54
__PACKAGE__->add_columns(
55
  "cardid",
56
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
57
  "batch_id",
58
  { data_type => "varchar", default_value => 1, is_nullable => 0, size => 10 },
59
  "borrowernumber",
60
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
61
  "timestamp",
62
  {
63
    data_type => "timestamp",
64
    datetime_undef_if_invalid => 1,
65
    default_value => \"current_timestamp",
66
    is_nullable => 0,
67
  },
68
);
69
70
=head1 PRIMARY KEY
71
72
=over 4
73
74
=item * L</cardid>
75
76
=back
77
78
=cut
79
80
__PACKAGE__->set_primary_key("cardid");
81
82
=head1 RELATIONS
83
84
=head2 borrowernumber
85
86
Type: belongs_to
87
88
Related object: L<Koha::Schema::Result::Borrower>
89
90
=cut
91
92
__PACKAGE__->belongs_to(
93
  "borrowernumber",
94
  "Koha::Schema::Result::Borrower",
95
  { borrowernumber => "borrowernumber" },
96
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
97
);
98
99
100
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
101
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZDpN4iw7+y9YP7Dc+ou8lQ
102
103
104
# You can replace this text with custom content, and it will be preserved on regeneration
105
1;
106
- 

Return to bug 13539