Filename | /home/vagrant/kohaclone/Koha/Schema/Result/MatchpointComponent.pm |
Statements | Executed 14 statements in 680µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 31µs | 35µs | BEGIN@1.1099 | Class::C3::Componentised::
1 | 1 | 1 | 14µs | 28µs | BEGIN@13 | Koha::Schema::Result::MatchpointComponent::
1 | 1 | 1 | 13µs | 99µs | BEGIN@16 | Koha::Schema::Result::MatchpointComponent::
1 | 1 | 1 | 11µs | 20µs | BEGIN@14 | Koha::Schema::Result::MatchpointComponent::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 117µs | 2 | 39µs | # spent 35µs (31+4) within Class::C3::Componentised::BEGIN@1.1099 which was called:
# once (31µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 35µs making 1 call to Class::C3::Componentised::BEGIN@1.1099
# spent 4µs making 1 call to utf8::import |
2 | package Koha::Schema::Result::MatchpointComponent; | ||||
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::MatchpointComponent | ||||
10 | |||||
11 | =cut | ||||
12 | |||||
13 | 2 | 62µs | 2 | 42µs | # spent 28µs (14+14) within Koha::Schema::Result::MatchpointComponent::BEGIN@13 which was called:
# once (14µs+14µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 28µs making 1 call to Koha::Schema::Result::MatchpointComponent::BEGIN@13
# spent 14µs making 1 call to strict::import |
14 | 2 | 54µs | 2 | 29µs | # spent 20µs (11+9) within Koha::Schema::Result::MatchpointComponent::BEGIN@14 which was called:
# once (11µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 20µs making 1 call to Koha::Schema::Result::MatchpointComponent::BEGIN@14
# spent 9µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 335µs | 2 | 186µs | # spent 99µs (13+87) within Koha::Schema::Result::MatchpointComponent::BEGIN@16 which was called:
# once (13µs+87µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 99µs making 1 call to Koha::Schema::Result::MatchpointComponent::BEGIN@16
# spent 87µs making 1 call to base::import |
17 | |||||
18 | =head1 TABLE: C<matchpoint_components> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 25µs | 1 | 442µs | __PACKAGE__->table("matchpoint_components"); # spent 442µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
23 | |||||
24 | =head1 ACCESSORS | ||||
25 | |||||
26 | =head2 matchpoint_id | ||||
27 | |||||
28 | data_type: 'integer' | ||||
29 | is_foreign_key: 1 | ||||
30 | is_nullable: 0 | ||||
31 | |||||
32 | =head2 matchpoint_component_id | ||||
33 | |||||
34 | data_type: 'integer' | ||||
35 | is_auto_increment: 1 | ||||
36 | is_nullable: 0 | ||||
37 | |||||
38 | =head2 sequence | ||||
39 | |||||
40 | accessor: undef | ||||
41 | data_type: 'integer' | ||||
42 | default_value: 0 | ||||
43 | is_nullable: 0 | ||||
44 | |||||
45 | =head2 tag | ||||
46 | |||||
47 | data_type: 'varchar' | ||||
48 | default_value: (empty string) | ||||
49 | is_nullable: 0 | ||||
50 | size: 3 | ||||
51 | |||||
52 | =head2 subfields | ||||
53 | |||||
54 | data_type: 'varchar' | ||||
55 | default_value: (empty string) | ||||
56 | is_nullable: 0 | ||||
57 | size: 40 | ||||
58 | |||||
59 | =head2 offset | ||||
60 | |||||
61 | data_type: 'integer' | ||||
62 | default_value: 0 | ||||
63 | is_nullable: 0 | ||||
64 | |||||
65 | =head2 length | ||||
66 | |||||
67 | data_type: 'integer' | ||||
68 | default_value: 0 | ||||
69 | is_nullable: 0 | ||||
70 | |||||
71 | =cut | ||||
72 | |||||
73 | 1 | 29µs | 1 | 3.19ms | __PACKAGE__->add_columns( # spent 3.19ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
74 | "matchpoint_id", | ||||
75 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
76 | "matchpoint_component_id", | ||||
77 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
78 | "sequence", | ||||
79 | { | ||||
80 | accessor => undef, | ||||
81 | data_type => "integer", | ||||
82 | default_value => 0, | ||||
83 | is_nullable => 0, | ||||
84 | }, | ||||
85 | "tag", | ||||
86 | { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 }, | ||||
87 | "subfields", | ||||
88 | { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 }, | ||||
89 | "offset", | ||||
90 | { data_type => "integer", default_value => 0, is_nullable => 0 }, | ||||
91 | "length", | ||||
92 | { data_type => "integer", default_value => 0, is_nullable => 0 }, | ||||
93 | ); | ||||
94 | |||||
95 | =head1 PRIMARY KEY | ||||
96 | |||||
97 | =over 4 | ||||
98 | |||||
99 | =item * L</matchpoint_component_id> | ||||
100 | |||||
101 | =back | ||||
102 | |||||
103 | =cut | ||||
104 | |||||
105 | 1 | 19µs | 1 | 87µs | __PACKAGE__->set_primary_key("matchpoint_component_id"); # spent 87µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
106 | |||||
107 | =head1 RELATIONS | ||||
108 | |||||
109 | =head2 matchpoint | ||||
110 | |||||
111 | Type: belongs_to | ||||
112 | |||||
113 | Related object: L<Koha::Schema::Result::Matchpoint> | ||||
114 | |||||
115 | =cut | ||||
116 | |||||
117 | 1 | 11µs | 1 | 486µs | __PACKAGE__->belongs_to( # spent 486µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
118 | "matchpoint", | ||||
119 | "Koha::Schema::Result::Matchpoint", | ||||
120 | { matchpoint_id => "matchpoint_id" }, | ||||
121 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
122 | ); | ||||
123 | |||||
124 | =head2 matchpoint_component_norms | ||||
125 | |||||
126 | Type: has_many | ||||
127 | |||||
128 | Related object: L<Koha::Schema::Result::MatchpointComponentNorm> | ||||
129 | |||||
130 | =cut | ||||
131 | |||||
132 | 1 | 10µs | 1 | 253µs | __PACKAGE__->has_many( # spent 253µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
133 | "matchpoint_component_norms", | ||||
134 | "Koha::Schema::Result::MatchpointComponentNorm", | ||||
135 | { | ||||
136 | "foreign.matchpoint_component_id" => "self.matchpoint_component_id", | ||||
137 | }, | ||||
138 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
139 | ); | ||||
140 | |||||
141 | |||||
142 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 | ||||
143 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:R9niKe/wGJXD+ZVkIP5Wpg | ||||
144 | |||||
145 | |||||
146 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
147 | 1 | 17µs | 1; |