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

(-)a/Koha/Schema/Result/Branch.pm (-2 / +17 lines)
Lines 337-342 __PACKAGE__->has_many( Link Here
337
  { cascade_copy => 0, cascade_delete => 0 },
337
  { cascade_copy => 0, cascade_delete => 0 },
338
);
338
);
339
339
340
=head2 collections
341
342
Type: has_many
343
344
Related object: L<Koha::Schema::Result::Collection>
345
346
=cut
347
348
__PACKAGE__->has_many(
349
  "collections",
350
  "Koha::Schema::Result::Collection",
351
  { "foreign.colBranchcode" => "self.branchcode" },
352
  { cascade_copy => 0, cascade_delete => 0 },
353
);
354
340
=head2 course_items
355
=head2 course_items
341
356
342
Type: has_many
357
Type: has_many
Lines 498-505 Composing rels: L</branchrelations> -> categorycode Link Here
498
__PACKAGE__->many_to_many("categorycodes", "branchrelations", "categorycode");
513
__PACKAGE__->many_to_many("categorycodes", "branchrelations", "categorycode");
499
514
500
515
501
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-10-27 10:44:50
516
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-11-06 15:26:36
502
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WRCu1ThkQVx+o7/ECe0j2A
517
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CGNPB/MkGLOihDThj43/4A
503
518
504
519
505
# You can replace this text with custom content, and it will be preserved on regeneration
520
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Collection.pm (-7 / +28 lines)
Lines 48-57 __PACKAGE__->table("collections"); Link Here
48
48
49
  accessor: 'col_branchcode'
49
  accessor: 'col_branchcode'
50
  data_type: 'varchar'
50
  data_type: 'varchar'
51
  is_foreign_key: 1
51
  is_nullable: 1
52
  is_nullable: 1
52
  size: 4
53
  size: 10
53
54
branchcode for branch where item should be held.
55
54
56
=cut
55
=cut
57
56
Lines 77-84 __PACKAGE__->add_columns( Link Here
77
  {
76
  {
78
    accessor => "col_branchcode",
77
    accessor => "col_branchcode",
79
    data_type => "varchar",
78
    data_type => "varchar",
79
    is_foreign_key => 1,
80
    is_nullable => 1,
80
    is_nullable => 1,
81
    size => 4,
81
    size => 10,
82
  },
82
  },
83
);
83
);
84
84
Lines 94-102 __PACKAGE__->add_columns( Link Here
94
94
95
__PACKAGE__->set_primary_key("colId");
95
__PACKAGE__->set_primary_key("colId");
96
96
97
=head1 RELATIONS
98
99
=head2 col_branchcode
100
101
Type: belongs_to
102
103
Related object: L<Koha::Schema::Result::Branch>
104
105
=cut
106
107
__PACKAGE__->belongs_to(
108
  "col_branchcode",
109
  "Koha::Schema::Result::Branch",
110
  { branchcode => "colBranchcode" },
111
  {
112
    is_deferrable => 1,
113
    join_type     => "LEFT",
114
    on_delete     => "CASCADE",
115
    on_update     => "CASCADE",
116
  },
117
);
118
97
119
98
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-08-18 13:01:05
120
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-11-06 15:26:36
99
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4QFGZYwbv0aj6eXdn7vO9A
121
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gb7EYny5ULsZw8rYQQ/hjA
100
122
101
123
102
# You can replace this text with custom content, and it will be preserved on regeneration
124
# You can replace this text with custom content, and it will be preserved on regeneration
103
- 

Return to bug 8836