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

(-)a/Koha/Schema/Result/Aqbudget.pm (-3 / +24 lines)
Lines 88-93 __PACKAGE__->table("aqbudgets"); Link Here
88
=head2 budget_period_id
88
=head2 budget_period_id
89
89
90
  data_type: 'integer'
90
  data_type: 'integer'
91
  is_foreign_key: 1
91
  is_nullable: 1
92
  is_nullable: 1
92
93
93
=head2 sort1_authcat
94
=head2 sort1_authcat
Lines 157-163 __PACKAGE__->add_columns( Link Here
157
    is_nullable => 0,
158
    is_nullable => 0,
158
  },
159
  },
159
  "budget_period_id",
160
  "budget_period_id",
160
  { data_type => "integer", is_nullable => 1 },
161
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
161
  "sort1_authcat",
162
  "sort1_authcat",
162
  { data_type => "varchar", is_nullable => 1, size => 80 },
163
  { data_type => "varchar", is_nullable => 1, size => 80 },
163
  "sort2_authcat",
164
  "sort2_authcat",
Lines 257-262 __PACKAGE__->has_many( Link Here
257
  { cascade_copy => 0, cascade_delete => 0 },
258
  { cascade_copy => 0, cascade_delete => 0 },
258
);
259
);
259
260
261
=head2 budget_period
262
263
Type: belongs_to
264
265
Related object: L<Koha::Schema::Result::Aqbudgetperiod>
266
267
=cut
268
269
__PACKAGE__->belongs_to(
270
  "budget_period",
271
  "Koha::Schema::Result::Aqbudgetperiod",
272
  { budget_period_id => "budget_period_id" },
273
  {
274
    is_deferrable => 1,
275
    join_type     => "LEFT",
276
    on_delete     => "CASCADE",
277
    on_update     => "CASCADE",
278
  },
279
);
280
260
=head2 suggestions
281
=head2 suggestions
261
282
262
Type: has_many
283
Type: has_many
Lines 298-305 Composing rels: L</aqbudgetborrowers> -> borrowernumber Link Here
298
__PACKAGE__->many_to_many("borrowernumbers", "aqbudgetborrowers", "borrowernumber");
319
__PACKAGE__->many_to_many("borrowernumbers", "aqbudgetborrowers", "borrowernumber");
299
320
300
321
301
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-07-16 13:50:45
322
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-09-13 23:03:50
302
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zB7ox8a4KdDGq5fsbQfLGQ
323
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kmzXRyD6aNqPr5C6u9GBHA
303
324
304
325
305
sub koha_object_class {
326
sub koha_object_class {
(-)a/Koha/Schema/Result/Aqbudgetperiod.pm (-3 / +19 lines)
Lines 110-118 __PACKAGE__->add_columns( Link Here
110
110
111
__PACKAGE__->set_primary_key("budget_period_id");
111
__PACKAGE__->set_primary_key("budget_period_id");
112
112
113
=head1 RELATIONS
113
114
114
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
115
=head2 aqbudgets
115
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:M13qdhmXgKilais2IFkXFw
116
117
Type: has_many
118
119
Related object: L<Koha::Schema::Result::Aqbudget>
120
121
=cut
122
123
__PACKAGE__->has_many(
124
  "aqbudgets",
125
  "Koha::Schema::Result::Aqbudget",
126
  { "foreign.budget_period_id" => "self.budget_period_id" },
127
  { cascade_copy => 0, cascade_delete => 0 },
128
);
129
130
131
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-09-13 23:03:50
132
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0xS/Pc8hoKlNKfW9zDd4Gg
116
133
117
sub koha_object_class {
134
sub koha_object_class {
118
    'Koha::Acquisition::Budget';
135
    'Koha::Acquisition::Budget';
119
- 

Return to bug 18050