Filename | /home/vagrant/kohaclone/Koha/Schema/Result/BorrowerAttribute.pm |
Statements | Executed 13 statements in 503µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 34µs | 39µs | BEGIN@1.266 | Class::C3::Componentised::
1 | 1 | 1 | 11µs | 104µs | BEGIN@16 | Koha::Schema::Result::BorrowerAttribute::
1 | 1 | 1 | 10µs | 23µs | BEGIN@13 | Koha::Schema::Result::BorrowerAttribute::
1 | 1 | 1 | 9µs | 19µs | BEGIN@14 | Koha::Schema::Result::BorrowerAttribute::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 78µs | 2 | 44µs | # spent 39µs (34+5) within Class::C3::Componentised::BEGIN@1.266 which was called:
# once (34µs+5µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 39µs making 1 call to Class::C3::Componentised::BEGIN@1.266
# spent 5µs making 1 call to utf8::import |
2 | package Koha::Schema::Result::BorrowerAttribute; | ||||
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::BorrowerAttribute | ||||
10 | |||||
11 | =cut | ||||
12 | |||||
13 | 2 | 43µs | 2 | 36µs | # spent 23µs (10+13) within Koha::Schema::Result::BorrowerAttribute::BEGIN@13 which was called:
# once (10µs+13µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 23µs making 1 call to Koha::Schema::Result::BorrowerAttribute::BEGIN@13
# spent 13µs making 1 call to strict::import |
14 | 2 | 51µs | 2 | 29µs | # spent 19µs (9+10) within Koha::Schema::Result::BorrowerAttribute::BEGIN@14 which was called:
# once (9µs+10µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 19µs making 1 call to Koha::Schema::Result::BorrowerAttribute::BEGIN@14
# spent 10µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 252µs | 2 | 197µs | # spent 104µs (11+93) within Koha::Schema::Result::BorrowerAttribute::BEGIN@16 which was called:
# once (11µs+93µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 104µs making 1 call to Koha::Schema::Result::BorrowerAttribute::BEGIN@16
# spent 93µs making 1 call to base::import |
17 | |||||
18 | =head1 TABLE: C<borrower_attributes> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 26µs | 1 | 611µs | __PACKAGE__->table("borrower_attributes"); # spent 611µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
23 | |||||
24 | =head1 ACCESSORS | ||||
25 | |||||
26 | =head2 borrowernumber | ||||
27 | |||||
28 | data_type: 'integer' | ||||
29 | is_foreign_key: 1 | ||||
30 | is_nullable: 0 | ||||
31 | |||||
32 | =head2 code | ||||
33 | |||||
34 | data_type: 'varchar' | ||||
35 | is_foreign_key: 1 | ||||
36 | is_nullable: 0 | ||||
37 | size: 10 | ||||
38 | |||||
39 | =head2 attribute | ||||
40 | |||||
41 | data_type: 'varchar' | ||||
42 | is_nullable: 1 | ||||
43 | size: 255 | ||||
44 | |||||
45 | =head2 password | ||||
46 | |||||
47 | data_type: 'varchar' | ||||
48 | is_nullable: 1 | ||||
49 | size: 64 | ||||
50 | |||||
51 | =cut | ||||
52 | |||||
53 | 1 | 24µs | 1 | 1.27ms | __PACKAGE__->add_columns( # spent 1.27ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
54 | "borrowernumber", | ||||
55 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
56 | "code", | ||||
57 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, | ||||
58 | "attribute", | ||||
59 | { data_type => "varchar", is_nullable => 1, size => 255 }, | ||||
60 | "password", | ||||
61 | { data_type => "varchar", is_nullable => 1, size => 64 }, | ||||
62 | ); | ||||
63 | |||||
64 | =head1 RELATIONS | ||||
65 | |||||
66 | =head2 borrowernumber | ||||
67 | |||||
68 | Type: belongs_to | ||||
69 | |||||
70 | Related object: L<Koha::Schema::Result::Borrower> | ||||
71 | |||||
72 | =cut | ||||
73 | |||||
74 | 1 | 12µs | 1 | 440µs | __PACKAGE__->belongs_to( # spent 440µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
75 | "borrowernumber", | ||||
76 | "Koha::Schema::Result::Borrower", | ||||
77 | { borrowernumber => "borrowernumber" }, | ||||
78 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
79 | ); | ||||
80 | |||||
81 | =head2 code | ||||
82 | |||||
83 | Type: belongs_to | ||||
84 | |||||
85 | Related object: L<Koha::Schema::Result::BorrowerAttributeType> | ||||
86 | |||||
87 | =cut | ||||
88 | |||||
89 | 1 | 5µs | 1 | 623µs | __PACKAGE__->belongs_to( # spent 623µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
90 | "code", | ||||
91 | "Koha::Schema::Result::BorrowerAttributeType", | ||||
92 | { code => "code" }, | ||||
93 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
94 | ); | ||||
95 | |||||
96 | |||||
97 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 | ||||
98 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9oRy+X25+b7vB03WSnpFTg | ||||
99 | |||||
100 | |||||
101 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
102 | 1 | 11µs | 1; |