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

(-)a/Koha/Schema/Result/Borrower.pm (-2 / +17 lines)
Lines 902-907 __PACKAGE__->has_many( Link Here
902
  { cascade_copy => 0, cascade_delete => 0 },
902
  { cascade_copy => 0, cascade_delete => 0 },
903
);
903
);
904
904
905
=head2 opac_news
906
907
Type: has_many
908
909
Related object: L<Koha::Schema::Result::OpacNews>
910
911
=cut
912
913
__PACKAGE__->has_many(
914
  "opac_news",
915
  "Koha::Schema::Result::OpacNews",
916
  { "foreign.borrowernumber" => "self.borrowernumber" },
917
  { cascade_copy => 0, cascade_delete => 0 },
918
);
919
905
=head2 patron_list_patrons
920
=head2 patron_list_patrons
906
921
907
Type: has_many
922
Type: has_many
Lines 1138-1145 Composing rels: L</aqorder_users> -> ordernumber Link Here
1138
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1153
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1139
1154
1140
1155
1141
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-10-06 10:38:42
1156
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-21 19:50:05
1142
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AdaMeazHWWCtMM7rvKX9Lg
1157
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QafovaRBnm36nyoyQTGIgQ
1143
1158
1144
1159
1145
# You can replace this text with custom content, and it will be preserved on regeneration
1160
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/OpacNews.pm (-3 / +30 lines)
Lines 75-80 __PACKAGE__->table("opac_news"); Link Here
75
  data_type: 'integer'
75
  data_type: 'integer'
76
  is_nullable: 1
76
  is_nullable: 1
77
77
78
=head2 borrowernumber
79
80
  data_type: 'integer'
81
  is_foreign_key: 1
82
  is_nullable: 1
83
78
=cut
84
=cut
79
85
80
__PACKAGE__->add_columns(
86
__PACKAGE__->add_columns(
Lines 104-109 __PACKAGE__->add_columns( Link Here
104
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
110
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
105
  "number",
111
  "number",
106
  { data_type => "integer", is_nullable => 1 },
112
  { data_type => "integer", is_nullable => 1 },
113
  "borrowernumber",
114
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
107
);
115
);
108
116
109
=head1 PRIMARY KEY
117
=head1 PRIMARY KEY
Lines 120-125 __PACKAGE__->set_primary_key("idnew"); Link Here
120
128
121
=head1 RELATIONS
129
=head1 RELATIONS
122
130
131
=head2 borrowernumber
132
133
Type: belongs_to
134
135
Related object: L<Koha::Schema::Result::Borrower>
136
137
=cut
138
139
__PACKAGE__->belongs_to(
140
  "borrowernumber",
141
  "Koha::Schema::Result::Borrower",
142
  { borrowernumber => "borrowernumber" },
143
  {
144
    is_deferrable => 1,
145
    join_type     => "LEFT",
146
    on_delete     => "SET NULL",
147
    on_update     => "CASCADE",
148
  },
149
);
150
123
=head2 branchcode
151
=head2 branchcode
124
152
125
Type: belongs_to
153
Type: belongs_to
Lines 141-148 __PACKAGE__->belongs_to( Link Here
141
);
169
);
142
170
143
171
144
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-02-16 23:15:22
172
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-21 19:50:05
145
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/q+riAqsYmCQkUCUL9MU7g
173
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QivH1Daozdp0BttbPF6CkA
146
174
147
175
148
# You can replace this text with custom content, and it will be preserved on regeneration
176
# You can replace this text with custom content, and it will be preserved on regeneration
149
- 

Return to bug 14246