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

(-)a/Koha/Schema/Result/Borrower.pm (-17 / +17 lines)
Lines 1432-1452 __PACKAGE__->has_many( Link Here
1432
  { cascade_copy => 0, cascade_delete => 0 },
1432
  { cascade_copy => 0, cascade_delete => 0 },
1433
);
1433
);
1434
1434
1435
=head2 import_sources
1436
1437
Type: has_many
1438
1439
Related object: L<Koha::Schema::Result::ImportSource>
1440
1441
=cut
1442
1443
__PACKAGE__->has_many(
1444
  "import_sources",
1445
  "Koha::Schema::Result::ImportSource",
1446
  { "foreign.patron_id" => "self.borrowernumber" },
1447
  { cascade_copy => 0, cascade_delete => 0 },
1448
);
1449
1450
=head2 issues
1435
=head2 issues
1451
1436
1452
Type: has_many
1437
Type: has_many
Lines 1717-1722 __PACKAGE__->has_many( Link Here
1717
  { cascade_copy => 0, cascade_delete => 0 },
1702
  { cascade_copy => 0, cascade_delete => 0 },
1718
);
1703
);
1719
1704
1705
=head2 record_sources
1706
1707
Type: has_many
1708
1709
Related object: L<Koha::Schema::Result::RecordSource>
1710
1711
=cut
1712
1713
__PACKAGE__->has_many(
1714
  "record_sources",
1715
  "Koha::Schema::Result::RecordSource",
1716
  { "foreign.patron_id" => "self.borrowernumber" },
1717
  { cascade_copy => 0, cascade_delete => 0 },
1718
);
1719
1720
=head2 reserves
1720
=head2 reserves
1721
1721
1722
Type: has_many
1722
Type: has_many
Lines 2118-2125 Composing rels: L</user_permissions> -> permission Link Here
2118
__PACKAGE__->many_to_many("permissions", "user_permissions", "permission");
2118
__PACKAGE__->many_to_many("permissions", "user_permissions", "permission");
2119
2119
2120
2120
2121
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-04-06 15:46:57
2121
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-07-27 20:42:58
2122
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:f6omVb7EtiysdaWTX3IRzg
2122
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ozXW5ny1kN3YQGJUEiqg9A
2123
2123
2124
__PACKAGE__->has_many(
2124
__PACKAGE__->has_many(
2125
  "restrictions",
2125
  "restrictions",
(-)a/Koha/Schema/Result/ImportSource.pm (-34 / +10 lines)
Lines 1-12 Link Here
1
use utf8;
1
use utf8;
2
package Koha::Schema::Result::ImportSource;
2
package Koha::Schema::Result::RecordSource;
3
3
4
# Created by DBIx::Class::Schema::Loader
4
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
6
7
=head1 NAME
7
=head1 NAME
8
8
9
Koha::Schema::Result::ImportSource
9
Koha::Schema::Result::RecordSource
10
10
11
=cut
11
=cut
12
12
Lines 15-29 use warnings; Link Here
15
15
16
use base 'DBIx::Class::Core';
16
use base 'DBIx::Class::Core';
17
17
18
=head1 TABLE: C<import_source>
18
=head1 TABLE: C<record_sources>
19
19
20
=cut
20
=cut
21
21
22
__PACKAGE__->table("import_source");
22
__PACKAGE__->table("record_sources");
23
23
24
=head1 ACCESSORS
24
=head1 ACCESSORS
25
25
26
=head2 import_source_id
26
=head2 record_source_id
27
27
28
  data_type: 'integer'
28
  data_type: 'integer'
29
  is_auto_increment: 1
29
  is_auto_increment: 1
Lines 43-49 __PACKAGE__->table("import_source"); Link Here
43
=cut
43
=cut
44
44
45
__PACKAGE__->add_columns(
45
__PACKAGE__->add_columns(
46
  "import_source_id",
46
  "record_source_id",
47
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
47
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
48
  "name",
48
  "name",
49
  { data_type => "text", is_nullable => 0 },
49
  { data_type => "text", is_nullable => 0 },
Lines 55-67 __PACKAGE__->add_columns( Link Here
55
55
56
=over 4
56
=over 4
57
57
58
=item * L</import_source_id>
58
=item * L</record_source_id>
59
59
60
=back
60
=back
61
61
62
=cut
62
=cut
63
63
64
__PACKAGE__->set_primary_key("import_source_id");
64
__PACKAGE__->set_primary_key("record_source_id");
65
65
66
=head1 RELATIONS
66
=head1 RELATIONS
67
67
Lines 81-112 __PACKAGE__->belongs_to( Link Here
81
);
81
);
82
82
83
83
84
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-02-02 19:57:13
84
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-07-27 20:42:58
85
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oz4padFuRhd33AKaO5hRRQ
85
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:m9dw0dxca5lW/2nUE4HLxQ
86
86
87
87
88
# You can replace this text with custom code or comments, and it will be preserved on regeneration
88
# You can replace this text with custom code or comments, and it will be preserved on regeneration
89
90
=head1 CUSTOM CODE
91
92
=head2 koha_object_class
93
94
name of the corresponding Koha::Object
95
96
=cut
97
98
sub koha_object_class {
99
    'Koha::ImportSource';
100
}
101
102
=head2 koha_objects_class
103
104
name of the corresponding Koha::Objects
105
106
=cut
107
108
sub koha_objects_class {
109
    'Koha::ImportSources';
110
}
111
112
1;
89
1;
113
- 

Return to bug 32607