2 package Koha
::Schema
::Result
::Letter
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Letter
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<letter>
22 __PACKAGE__
->table("letter");
29 default_value: (empty string)
36 default_value: (empty string)
43 default_value: (empty string)
50 default_value: (empty string)
63 default_value: (empty string)
72 =head2 message_transport_type
75 default_value: 'email'
82 __PACKAGE__
->add_columns(
84 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 20 },
86 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 20 },
88 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 10 },
90 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 100 },
92 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 1 },
94 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 200 },
96 { data_type
=> "text", is_nullable
=> 1 },
97 "message_transport_type",
99 data_type
=> "varchar",
100 default_value
=> "email",
115 =item * L</branchcode>
117 =item * L</message_transport_type>
123 __PACKAGE__
->set_primary_key("module", "code", "branchcode", "message_transport_type");
127 =head2 message_transport_type
131 Related object: L<Koha::Schema::Result::MessageTransportType>
135 __PACKAGE__
->belongs_to(
136 "message_transport_type",
137 "Koha::Schema::Result::MessageTransportType",
138 { message_transport_type
=> "message_transport_type" },
139 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
142 =head2 message_transports
146 Related object: L<Koha::Schema::Result::MessageTransport>
150 __PACKAGE__
->has_many(
151 "message_transports",
152 "Koha::Schema::Result::MessageTransport",
154 "foreign.branchcode" => "self.branchcode",
155 "foreign.letter_code" => "self.code",
156 "foreign.letter_module" => "self.module",
158 { cascade_copy
=> 0, cascade_delete
=> 0 },
162 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-05-02 18:04:32
163 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HFUQ+/BKlweHglzOlm0lUQ
166 # You can replace this text with custom content, and it will be preserved on regeneration