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

(-)a/Koha/Schema/Result/Collection.pm (-2 / +17 lines)
Lines 116-124 __PACKAGE__->belongs_to( Link Here
116
  },
116
  },
117
);
117
);
118
118
119
=head2 collections_trackings
119
120
120
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-11-06 15:26:36
121
Type: has_many
121
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gb7EYny5ULsZw8rYQQ/hjA
122
123
Related object: L<Koha::Schema::Result::CollectionsTracking>
124
125
=cut
126
127
__PACKAGE__->has_many(
128
  "collections_trackings",
129
  "Koha::Schema::Result::CollectionsTracking",
130
  { "foreign.colId" => "self.colId" },
131
  { cascade_copy => 0, cascade_delete => 0 },
132
);
133
134
135
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-05-15 11:37:03
136
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nMkFfhk7kPuhbW70EE3pgg
122
137
123
138
124
# You can replace this text with custom content, and it will be preserved on regeneration
139
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CollectionsTracking.pm (-7 / +47 lines)
Lines 34-39 __PACKAGE__->table("collections_tracking"); Link Here
34
  accessor: 'col_id'
34
  accessor: 'col_id'
35
  data_type: 'integer'
35
  data_type: 'integer'
36
  default_value: 0
36
  default_value: 0
37
  is_foreign_key: 1
37
  is_nullable: 0
38
  is_nullable: 0
38
39
39
collections.colId
40
collections.colId
Lines 42-47 collections.colId Link Here
42
43
43
  data_type: 'integer'
44
  data_type: 'integer'
44
  default_value: 0
45
  default_value: 0
46
  is_foreign_key: 1
45
  is_nullable: 0
47
  is_nullable: 0
46
48
47
items.itemnumber
49
items.itemnumber
Lines 53-65 __PACKAGE__->add_columns( Link Here
53
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
55
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
54
  "colId",
56
  "colId",
55
  {
57
  {
56
    accessor      => "col_id",
58
    accessor       => "col_id",
57
    data_type     => "integer",
59
    data_type      => "integer",
58
    default_value => 0,
60
    default_value  => 0,
59
    is_nullable   => 0,
61
    is_foreign_key => 1,
62
    is_nullable    => 0,
60
  },
63
  },
61
  "itemnumber",
64
  "itemnumber",
62
  { data_type => "integer", default_value => 0, is_nullable => 0 },
65
  {
66
    data_type      => "integer",
67
    default_value  => 0,
68
    is_foreign_key => 1,
69
    is_nullable    => 0,
70
  },
63
);
71
);
64
72
65
=head1 PRIMARY KEY
73
=head1 PRIMARY KEY
Lines 74-82 __PACKAGE__->add_columns( Link Here
74
82
75
__PACKAGE__->set_primary_key("collections_tracking_id");
83
__PACKAGE__->set_primary_key("collections_tracking_id");
76
84
85
=head1 RELATIONS
86
87
=head2 col
88
89
Type: belongs_to
90
91
Related object: L<Koha::Schema::Result::Collection>
92
93
=cut
94
95
__PACKAGE__->belongs_to(
96
  "col",
97
  "Koha::Schema::Result::Collection",
98
  { colId => "colId" },
99
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
100
);
101
102
=head2 itemnumber
103
104
Type: belongs_to
105
106
Related object: L<Koha::Schema::Result::Item>
107
108
=cut
109
110
__PACKAGE__->belongs_to(
111
  "itemnumber",
112
  "Koha::Schema::Result::Item",
113
  { itemnumber => "itemnumber" },
114
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
115
);
116
77
117
78
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-08-18 13:01:05
118
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-05-15 11:37:03
79
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:s8ZFSmMJt313bz3XdlhITQ
119
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:f69L8B7r/Rvyn0AZQbrJcw
80
120
81
121
82
# You can replace this text with custom code or comments, and it will be preserved on regeneration
122
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Item.pm (-3 / +17 lines)
Lines 499-504 __PACKAGE__->has_many( Link Here
499
  { cascade_copy => 0, cascade_delete => 0 },
499
  { cascade_copy => 0, cascade_delete => 0 },
500
);
500
);
501
501
502
=head2 collections_trackings
503
504
Type: has_many
505
506
Related object: L<Koha::Schema::Result::CollectionsTracking>
507
508
=cut
509
510
__PACKAGE__->has_many(
511
  "collections_trackings",
512
  "Koha::Schema::Result::CollectionsTracking",
513
  { "foreign.itemnumber" => "self.itemnumber" },
514
  { cascade_copy => 0, cascade_delete => 0 },
515
);
516
502
=head2 course_item
517
=head2 course_item
503
518
504
Type: might_have
519
Type: might_have
Lines 675-682 __PACKAGE__->might_have( Link Here
675
);
690
);
676
691
677
692
678
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-24 13:56:21
693
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-05-15 11:37:03
679
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Vf1sBZrpUo0Cvi896fjNuA
694
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OUa2zlinnT3CbZgH/yGNPA
680
695
681
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
696
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
682
697
683
- 

Return to bug 18606