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

(-)a/Koha/Schema/Result/Aqorder.pm (-2 / +27 lines)
Lines 341-346 __PACKAGE__->set_primary_key("ordernumber"); Link Here
341
341
342
=head1 RELATIONS
342
=head1 RELATIONS
343
343
344
=head2 aqorder_users
345
346
Type: has_many
347
348
Related object: L<Koha::Schema::Result::AqorderUser>
349
350
=cut
351
352
__PACKAGE__->has_many(
353
  "aqorder_users",
354
  "Koha::Schema::Result::AqorderUser",
355
  { "foreign.ordernumber" => "self.ordernumber" },
356
  { cascade_copy => 0, cascade_delete => 0 },
357
);
358
344
=head2 aqorders_items
359
=head2 aqorders_items
345
360
346
Type: has_many
361
Type: has_many
Lines 481-489 __PACKAGE__->belongs_to( Link Here
481
  },
496
  },
482
);
497
);
483
498
499
=head2 borrowernumbers
500
501
Type: many_to_many
502
503
Composing rels: L</aqorder_users> -> borrowernumber
504
505
=cut
506
507
__PACKAGE__->many_to_many("borrowernumbers", "aqorder_users", "borrowernumber");
508
484
509
485
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-02-05 15:20:11
510
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-03-11 11:50:38
486
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MfXZ8f2Md6X+C1fVU8TtOg
511
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BbhBIc0Bvj3Olf/dYzDjnw
487
512
488
513
489
# You can replace this text with custom content, and it will be preserved on regeneration
514
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/AqorderUser.pm (+99 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::AqorderUser;
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::AqorderUser
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<aqorder_users>
19
20
=cut
21
22
__PACKAGE__->table("aqorder_users");
23
24
=head1 ACCESSORS
25
26
=head2 ordernumber
27
28
  data_type: 'integer'
29
  is_foreign_key: 1
30
  is_nullable: 0
31
32
=head2 borrowernumber
33
34
  data_type: 'integer'
35
  is_foreign_key: 1
36
  is_nullable: 0
37
38
=cut
39
40
__PACKAGE__->add_columns(
41
  "ordernumber",
42
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
43
  "borrowernumber",
44
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
45
);
46
47
=head1 PRIMARY KEY
48
49
=over 4
50
51
=item * L</ordernumber>
52
53
=item * L</borrowernumber>
54
55
=back
56
57
=cut
58
59
__PACKAGE__->set_primary_key("ordernumber", "borrowernumber");
60
61
=head1 RELATIONS
62
63
=head2 borrowernumber
64
65
Type: belongs_to
66
67
Related object: L<Koha::Schema::Result::Borrower>
68
69
=cut
70
71
__PACKAGE__->belongs_to(
72
  "borrowernumber",
73
  "Koha::Schema::Result::Borrower",
74
  { borrowernumber => "borrowernumber" },
75
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
76
);
77
78
=head2 ordernumber
79
80
Type: belongs_to
81
82
Related object: L<Koha::Schema::Result::Aqorder>
83
84
=cut
85
86
__PACKAGE__->belongs_to(
87
  "ordernumber",
88
  "Koha::Schema::Result::Aqorder",
89
  { ordernumber => "ordernumber" },
90
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
91
);
92
93
94
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-03-11 11:50:38
95
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6mhRlYUeJnpQIJ2P9WTbHQ
96
97
98
# You can replace this text with custom code or comments, and it will be preserved on regeneration
99
1;
(-)a/Koha/Schema/Result/Borrower.pm (-3 / +27 lines)
Lines 678-683 __PACKAGE__->has_many( Link Here
678
  { cascade_copy => 0, cascade_delete => 0 },
678
  { cascade_copy => 0, cascade_delete => 0 },
679
);
679
);
680
680
681
=head2 aqorder_users
682
683
Type: has_many
684
685
Related object: L<Koha::Schema::Result::AqorderUser>
686
687
=cut
688
689
__PACKAGE__->has_many(
690
  "aqorder_users",
691
  "Koha::Schema::Result::AqorderUser",
692
  { "foreign.borrowernumber" => "self.borrowernumber" },
693
  { cascade_copy => 0, cascade_delete => 0 },
694
);
695
681
=head2 borrower_attributes
696
=head2 borrower_attributes
682
697
683
Type: has_many
698
Type: has_many
Lines 1128-1136 Composing rels: L</course_instructors> -> course Link Here
1128
1143
1129
__PACKAGE__->many_to_many("courses", "course_instructors", "course");
1144
__PACKAGE__->many_to_many("courses", "course_instructors", "course");
1130
1145
1146
=head2 ordernumbers
1147
1148
Type: many_to_many
1149
1150
Composing rels: L</aqorder_users> -> ordernumber
1151
1152
=cut
1153
1154
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1155
1131
1156
1132
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-12-31 14:08:18
1157
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-03-11 11:50:38
1133
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mOTD/GsDpo3RPjUjTHrLRQ
1158
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4wVgO/FIFHQV+AxzXc+k8g
1134
1159
1135
1160
1136
# You can replace this text with custom content, and it will be preserved on regeneration
1161
# You can replace this text with custom content, and it will be preserved on regeneration
1137
- 

Return to bug 12648