2 package Koha
::Schema
::Result
::BorrowerAttribute
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::BorrowerAttribute
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<borrower_attributes>
22 __PACKAGE__
->table("borrower_attributes");
53 __PACKAGE__
->add_columns(
55 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
57 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
59 { data_type
=> "varchar", is_foreign_key
=> 1, is_nullable
=> 0, size
=> 10 },
61 { data_type
=> "varchar", is_nullable
=> 1, size
=> 255 },
74 __PACKAGE__
->set_primary_key("id");
82 Related object: L<Koha::Schema::Result::Borrower>
86 __PACKAGE__
->belongs_to(
88 "Koha::Schema::Result::Borrower",
89 { borrowernumber
=> "borrowernumber" },
90 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
97 Related object: L<Koha::Schema::Result::BorrowerAttributeType>
101 __PACKAGE__
->belongs_to(
103 "Koha::Schema::Result::BorrowerAttributeType",
105 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
109 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-12-08 04:41:27
110 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EarETnedFsmRmAAJAUrKGg
112 =head2 borrower_attribute_types
116 Related object: L<Koha::Schema::Result::BorrowerAttributeType>
120 __PACKAGE__
->belongs_to(
121 "borrower_attribute_types",
122 "Koha::Schema::Result::BorrowerAttributeType",
123 { "foreign.code" => "self.code" },
124 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },);
127 sub koha_object_class
{
128 'Koha::Patron::Attribute';
130 sub koha_objects_class
{
131 'Koha::Patron::Attributes';