1 package Koha::Schema::Result::CategoriesBranch;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base 'DBIx::Class::Core';
14 Koha::Schema::Result::CategoriesBranch
18 __PACKAGE__->table("categories_branches");
38 __PACKAGE__->add_columns(
40 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
42 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
51 Related object: L<Koha::Schema::Result::Category>
55 __PACKAGE__->belongs_to(
57 "Koha::Schema::Result::Category",
58 { categorycode => "categorycode" },
59 { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
66 Related object: L<Koha::Schema::Result::Branch>
70 __PACKAGE__->belongs_to(
72 "Koha::Schema::Result::Branch",
73 { branchcode => "branchcode" },
74 { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
78 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
79 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SVolMqOZ2fpkPdSCSjpDUA
82 # You can replace this text with custom content, and it will be preserved on regeneration