Filename | /home/vagrant/kohaclone/Koha/Schema/Result/MessageAttribute.pm |
Statements | Executed 15 statements in 521µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 25µs | 28µs | BEGIN@1.1629 | Class::C3::Componentised::
1 | 1 | 1 | 16µs | 85µs | BEGIN@16 | Koha::Schema::Result::MessageAttribute::
1 | 1 | 1 | 10µs | 17µs | BEGIN@13 | Koha::Schema::Result::MessageAttribute::
1 | 1 | 1 | 9µs | 15µs | BEGIN@14 | Koha::Schema::Result::MessageAttribute::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 69µs | 2 | 31µs | # spent 28µs (25+3) within Class::C3::Componentised::BEGIN@1.1629 which was called:
# once (25µs+3µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 28µs making 1 call to Class::C3::Componentised::BEGIN@1.1629
# spent 3µs making 1 call to utf8::import |
2 | package Koha::Schema::Result::MessageAttribute; | ||||
3 | |||||
4 | # Created by DBIx::Class::Schema::Loader | ||||
5 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||||
6 | |||||
7 | =head1 NAME | ||||
8 | |||||
9 | Koha::Schema::Result::MessageAttribute | ||||
10 | |||||
11 | =cut | ||||
12 | |||||
13 | 2 | 36µs | 2 | 25µs | # spent 17µs (10+8) within Koha::Schema::Result::MessageAttribute::BEGIN@13 which was called:
# once (10µs+8µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 17µs making 1 call to Koha::Schema::Result::MessageAttribute::BEGIN@13
# spent 8µs making 1 call to strict::import |
14 | 2 | 36µs | 2 | 20µs | # spent 15µs (9+6) within Koha::Schema::Result::MessageAttribute::BEGIN@14 which was called:
# once (9µs+6µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 15µs making 1 call to Koha::Schema::Result::MessageAttribute::BEGIN@14
# spent 6µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 237µs | 2 | 154µs | # spent 85µs (16+69) within Koha::Schema::Result::MessageAttribute::BEGIN@16 which was called:
# once (16µs+69µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 85µs making 1 call to Koha::Schema::Result::MessageAttribute::BEGIN@16
# spent 69µs making 1 call to base::import |
17 | |||||
18 | =head1 TABLE: C<message_attributes> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 20µs | 1 | 356µs | __PACKAGE__->table("message_attributes"); # spent 356µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
23 | |||||
24 | =head1 ACCESSORS | ||||
25 | |||||
26 | =head2 message_attribute_id | ||||
27 | |||||
28 | data_type: 'integer' | ||||
29 | is_auto_increment: 1 | ||||
30 | is_nullable: 0 | ||||
31 | |||||
32 | =head2 message_name | ||||
33 | |||||
34 | data_type: 'varchar' | ||||
35 | default_value: (empty string) | ||||
36 | is_nullable: 0 | ||||
37 | size: 40 | ||||
38 | |||||
39 | =head2 takes_days | ||||
40 | |||||
41 | data_type: 'tinyint' | ||||
42 | default_value: 0 | ||||
43 | is_nullable: 0 | ||||
44 | |||||
45 | =cut | ||||
46 | |||||
47 | 1 | 20µs | 1 | 1.69ms | __PACKAGE__->add_columns( # spent 1.69ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
48 | "message_attribute_id", | ||||
49 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
50 | "message_name", | ||||
51 | { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 }, | ||||
52 | "takes_days", | ||||
53 | { data_type => "tinyint", default_value => 0, is_nullable => 0 }, | ||||
54 | ); | ||||
55 | |||||
56 | =head1 PRIMARY KEY | ||||
57 | |||||
58 | =over 4 | ||||
59 | |||||
60 | =item * L</message_attribute_id> | ||||
61 | |||||
62 | =back | ||||
63 | |||||
64 | =cut | ||||
65 | |||||
66 | 1 | 64µs | 1 | 137µs | __PACKAGE__->set_primary_key("message_attribute_id"); # spent 137µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
67 | |||||
68 | =head1 UNIQUE CONSTRAINTS | ||||
69 | |||||
70 | =head2 C<message_name> | ||||
71 | |||||
72 | =over 4 | ||||
73 | |||||
74 | =item * L</message_name> | ||||
75 | |||||
76 | =back | ||||
77 | |||||
78 | =cut | ||||
79 | |||||
80 | 1 | 19µs | 1 | 26µs | __PACKAGE__->add_unique_constraint("message_name", ["message_name"]); # spent 26µs making 1 call to DBIx::Class::ResultSourceProxy::add_unique_constraint |
81 | |||||
82 | =head1 RELATIONS | ||||
83 | |||||
84 | =head2 borrower_message_preferences | ||||
85 | |||||
86 | Type: has_many | ||||
87 | |||||
88 | Related object: L<Koha::Schema::Result::BorrowerMessagePreference> | ||||
89 | |||||
90 | =cut | ||||
91 | |||||
92 | 1 | 8µs | 1 | 347µs | __PACKAGE__->has_many( # spent 347µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
93 | "borrower_message_preferences", | ||||
94 | "Koha::Schema::Result::BorrowerMessagePreference", | ||||
95 | { "foreign.message_attribute_id" => "self.message_attribute_id" }, | ||||
96 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
97 | ); | ||||
98 | |||||
99 | =head2 message_transports | ||||
100 | |||||
101 | Type: has_many | ||||
102 | |||||
103 | Related object: L<Koha::Schema::Result::MessageTransport> | ||||
104 | |||||
105 | =cut | ||||
106 | |||||
107 | 1 | 3µs | 1 | 237µs | __PACKAGE__->has_many( # spent 237µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
108 | "message_transports", | ||||
109 | "Koha::Schema::Result::MessageTransport", | ||||
110 | { "foreign.message_attribute_id" => "self.message_attribute_id" }, | ||||
111 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
112 | ); | ||||
113 | |||||
114 | |||||
115 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 | ||||
116 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:N033AvWwG2CDBDuTj2unqQ | ||||
117 | |||||
118 | |||||
119 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
120 | 1 | 9µs | 1; |