2 package Koha
::Schema
::Result
::BranchItemRule
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::BranchItemRule
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<branch_item_rules>
22 __PACKAGE__
->table("branch_item_rules");
45 =head2 hold_fulfillment_policy
49 extra: {list => ["any","homebranch","holdingbranch"]}
60 __PACKAGE__
->add_columns(
62 { data_type
=> "varchar", is_foreign_key
=> 1, is_nullable
=> 0, size
=> 10 },
64 { data_type
=> "varchar", is_foreign_key
=> 1, is_nullable
=> 0, size
=> 10 },
66 { data_type
=> "tinyint", is_nullable
=> 1 },
67 "hold_fulfillment_policy",
70 default_value
=> "any",
71 extra
=> { list
=> ["any", "homebranch", "holdingbranch"] },
75 { data_type
=> "varchar", is_nullable
=> 1, size
=> 15 },
84 =item * L</branchcode>
90 __PACKAGE__
->set_primary_key("itemtype", "branchcode");
98 Related object: L<Koha::Schema::Result::Branch>
102 __PACKAGE__
->belongs_to(
104 "Koha::Schema::Result::Branch",
105 { branchcode
=> "branchcode" },
106 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
113 Related object: L<Koha::Schema::Result::Itemtype>
117 __PACKAGE__
->belongs_to(
119 "Koha::Schema::Result::Itemtype",
120 { itemtype
=> "itemtype" },
121 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
125 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-29 10:32:00
126 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yMmvhDqtrKcNeDU9ZJCQZw
129 # You can replace this text with custom content, and it will be preserved on regeneration