2 package Koha
::Schema
::Result
::Branch
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Branch
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<branches>
22 __PACKAGE__
->table("branches");
29 default_value: (empty string)
35 data_type: 'mediumtext'
40 data_type: 'mediumtext'
45 data_type: 'mediumtext'
50 data_type: 'mediumtext'
61 data_type: 'mediumtext'
66 data_type: 'mediumtext'
76 data_type: 'mediumtext'
81 data_type: 'mediumtext'
86 data_type: 'mediumtext'
91 data_type: 'mediumtext'
113 data_type: 'mediumtext'
123 __PACKAGE__
->add_columns(
125 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 10 },
127 { data_type
=> "mediumtext", is_nullable
=> 0 },
129 { data_type
=> "mediumtext", is_nullable
=> 1 },
131 { data_type
=> "mediumtext", is_nullable
=> 1 },
133 { data_type
=> "mediumtext", is_nullable
=> 1 },
135 { data_type
=> "varchar", is_nullable
=> 1, size
=> 25 },
137 { data_type
=> "mediumtext", is_nullable
=> 1 },
139 { data_type
=> "mediumtext", is_nullable
=> 1 },
141 { data_type
=> "text", is_nullable
=> 1 },
143 { data_type
=> "mediumtext", is_nullable
=> 1 },
145 { data_type
=> "mediumtext", is_nullable
=> 1 },
147 { data_type
=> "mediumtext", is_nullable
=> 1 },
149 { data_type
=> "mediumtext", is_nullable
=> 1 },
151 { data_type
=> "tinyint", is_nullable
=> 1 },
153 { data_type
=> "varchar", is_nullable
=> 1, size
=> 15 },
155 { data_type
=> "varchar", is_nullable
=> 1, size
=> 100 },
157 { data_type
=> "mediumtext", is_nullable
=> 1 },
159 { data_type
=> "text", is_nullable
=> 1 },
166 =item * L</branchcode>
172 __PACKAGE__
->set_primary_key("branchcode");
180 Related object: L<Koha::Schema::Result::Aqbasket>
184 __PACKAGE__
->has_many(
186 "Koha::Schema::Result::Aqbasket",
187 { "foreign.branch" => "self.branchcode" },
188 { cascade_copy
=> 0, cascade_delete
=> 0 },
191 =head2 authorised_values_branches
195 Related object: L<Koha::Schema::Result::AuthorisedValuesBranch>
199 __PACKAGE__
->has_many(
200 "authorised_values_branches",
201 "Koha::Schema::Result::AuthorisedValuesBranch",
202 { "foreign.branchcode" => "self.branchcode" },
203 { cascade_copy
=> 0, cascade_delete
=> 0 },
206 =head2 borrower_attribute_types_branches
210 Related object: L<Koha::Schema::Result::BorrowerAttributeTypesBranch>
214 __PACKAGE__
->has_many(
215 "borrower_attribute_types_branches",
216 "Koha::Schema::Result::BorrowerAttributeTypesBranch",
217 { "foreign.b_branchcode" => "self.branchcode" },
218 { cascade_copy
=> 0, cascade_delete
=> 0 },
225 Related object: L<Koha::Schema::Result::Borrower>
229 __PACKAGE__
->has_many(
231 "Koha::Schema::Result::Borrower",
232 { "foreign.branchcode" => "self.branchcode" },
233 { cascade_copy
=> 0, cascade_delete
=> 0 },
236 =head2 branch_borrower_circ_rules
240 Related object: L<Koha::Schema::Result::BranchBorrowerCircRule>
244 __PACKAGE__
->has_many(
245 "branch_borrower_circ_rules",
246 "Koha::Schema::Result::BranchBorrowerCircRule",
247 { "foreign.branchcode" => "self.branchcode" },
248 { cascade_copy
=> 0, cascade_delete
=> 0 },
251 =head2 branch_item_rules
255 Related object: L<Koha::Schema::Result::BranchItemRule>
259 __PACKAGE__
->has_many(
261 "Koha::Schema::Result::BranchItemRule",
262 { "foreign.branchcode" => "self.branchcode" },
263 { cascade_copy
=> 0, cascade_delete
=> 0 },
266 =head2 branchrelations
270 Related object: L<Koha::Schema::Result::Branchrelation>
274 __PACKAGE__
->has_many(
276 "Koha::Schema::Result::Branchrelation",
277 { "foreign.branchcode" => "self.branchcode" },
278 { cascade_copy
=> 0, cascade_delete
=> 0 },
281 =head2 branchtransfers_frombranches
285 Related object: L<Koha::Schema::Result::Branchtransfer>
289 __PACKAGE__
->has_many(
290 "branchtransfers_frombranches",
291 "Koha::Schema::Result::Branchtransfer",
292 { "foreign.frombranch" => "self.branchcode" },
293 { cascade_copy
=> 0, cascade_delete
=> 0 },
296 =head2 branchtransfers_tobranches
300 Related object: L<Koha::Schema::Result::Branchtransfer>
304 __PACKAGE__
->has_many(
305 "branchtransfers_tobranches",
306 "Koha::Schema::Result::Branchtransfer",
307 { "foreign.tobranch" => "self.branchcode" },
308 { cascade_copy
=> 0, cascade_delete
=> 0 },
311 =head2 categories_branches
315 Related object: L<Koha::Schema::Result::CategoriesBranch>
319 __PACKAGE__
->has_many(
320 "categories_branches",
321 "Koha::Schema::Result::CategoriesBranch",
322 { "foreign.branchcode" => "self.branchcode" },
323 { cascade_copy
=> 0, cascade_delete
=> 0 },
330 Related object: L<Koha::Schema::Result::CourseItem>
334 __PACKAGE__
->has_many(
336 "Koha::Schema::Result::CourseItem",
337 { "foreign.holdingbranch" => "self.branchcode" },
338 { cascade_copy
=> 0, cascade_delete
=> 0 },
341 =head2 creator_batches
345 Related object: L<Koha::Schema::Result::CreatorBatch>
349 __PACKAGE__
->has_many(
351 "Koha::Schema::Result::CreatorBatch",
352 { "foreign.branch_code" => "self.branchcode" },
353 { cascade_copy
=> 0, cascade_delete
=> 0 },
356 =head2 default_branch_circ_rule
360 Related object: L<Koha::Schema::Result::DefaultBranchCircRule>
364 __PACKAGE__
->might_have(
365 "default_branch_circ_rule",
366 "Koha::Schema::Result::DefaultBranchCircRule",
367 { "foreign.branchcode" => "self.branchcode" },
368 { cascade_copy
=> 0, cascade_delete
=> 0 },
371 =head2 hold_fill_targets
375 Related object: L<Koha::Schema::Result::HoldFillTarget>
379 __PACKAGE__
->has_many(
381 "Koha::Schema::Result::HoldFillTarget",
382 { "foreign.source_branchcode" => "self.branchcode" },
383 { cascade_copy
=> 0, cascade_delete
=> 0 },
386 =head2 items_holdingbranches
390 Related object: L<Koha::Schema::Result::Item>
394 __PACKAGE__
->has_many(
395 "items_holdingbranches",
396 "Koha::Schema::Result::Item",
397 { "foreign.holdingbranch" => "self.branchcode" },
398 { cascade_copy
=> 0, cascade_delete
=> 0 },
401 =head2 items_homebranches
405 Related object: L<Koha::Schema::Result::Item>
409 __PACKAGE__
->has_many(
410 "items_homebranches",
411 "Koha::Schema::Result::Item",
412 { "foreign.homebranch" => "self.branchcode" },
413 { cascade_copy
=> 0, cascade_delete
=> 0 },
420 Related object: L<Koha::Schema::Result::Reserve>
424 __PACKAGE__
->has_many(
426 "Koha::Schema::Result::Reserve",
427 { "foreign.branchcode" => "self.branchcode" },
428 { cascade_copy
=> 0, cascade_delete
=> 0 },
431 =head2 transport_cost_frombranches
435 Related object: L<Koha::Schema::Result::TransportCost>
439 __PACKAGE__
->has_many(
440 "transport_cost_frombranches",
441 "Koha::Schema::Result::TransportCost",
442 { "foreign.frombranch" => "self.branchcode" },
443 { cascade_copy
=> 0, cascade_delete
=> 0 },
446 =head2 transport_cost_tobranches
450 Related object: L<Koha::Schema::Result::TransportCost>
454 __PACKAGE__
->has_many(
455 "transport_cost_tobranches",
456 "Koha::Schema::Result::TransportCost",
457 { "foreign.tobranch" => "self.branchcode" },
458 { cascade_copy
=> 0, cascade_delete
=> 0 },
465 Composing rels: L</branchrelations> -> categorycode
469 __PACKAGE__
->many_to_many("categorycodes", "branchrelations", "categorycode");
472 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-31 16:31:19
473 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PKoXMUUg0NUf/xVDBkPOqQ
476 # You can replace this text with custom content, and it will be preserved on regeneration