Filename | /home/vagrant/kohaclone/Koha/Schema/Result/Patronimage.pm |
Statements | Executed 13 statements in 470µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 28µs | 32µs | BEGIN@1.2485 | Class::C3::Componentised::
1 | 1 | 1 | 12µs | 23µs | BEGIN@13 | Koha::Schema::Result::Patronimage::
1 | 1 | 1 | 10µs | 20µs | BEGIN@14 | Koha::Schema::Result::Patronimage::
1 | 1 | 1 | 10µs | 87µs | BEGIN@16 | Koha::Schema::Result::Patronimage::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 75µs | 2 | 36µs | # spent 32µs (28+4) within Class::C3::Componentised::BEGIN@1.2485 which was called:
# once (28µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 32µs making 1 call to Class::C3::Componentised::BEGIN@1.2485
# spent 4µs making 1 call to utf8::import |
2 | package Koha::Schema::Result::Patronimage; | ||||
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::Patronimage | ||||
10 | |||||
11 | =cut | ||||
12 | |||||
13 | 2 | 43µs | 2 | 34µs | # spent 23µs (12+11) within Koha::Schema::Result::Patronimage::BEGIN@13 which was called:
# once (12µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 23µs making 1 call to Koha::Schema::Result::Patronimage::BEGIN@13
# spent 11µs making 1 call to strict::import |
14 | 2 | 42µs | 2 | 30µs | # spent 20µs (10+10) within Koha::Schema::Result::Patronimage::BEGIN@14 which was called:
# once (10µs+10µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 20µs making 1 call to Koha::Schema::Result::Patronimage::BEGIN@14
# spent 10µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 233µs | 2 | 163µs | # spent 87µs (10+77) within Koha::Schema::Result::Patronimage::BEGIN@16 which was called:
# once (10µs+77µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 87µs making 1 call to Koha::Schema::Result::Patronimage::BEGIN@16
# spent 77µs making 1 call to base::import |
17 | |||||
18 | =head1 TABLE: C<patronimage> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 21µs | 1 | 332µs | __PACKAGE__->table("patronimage"); # spent 332µ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 mimetype | ||||
33 | |||||
34 | data_type: 'varchar' | ||||
35 | is_nullable: 0 | ||||
36 | size: 15 | ||||
37 | |||||
38 | =head2 imagefile | ||||
39 | |||||
40 | data_type: 'mediumblob' | ||||
41 | is_nullable: 0 | ||||
42 | |||||
43 | =cut | ||||
44 | |||||
45 | 1 | 22µs | 1 | 281µs | __PACKAGE__->add_columns( # spent 281µs making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
46 | "borrowernumber", | ||||
47 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
48 | "mimetype", | ||||
49 | { data_type => "varchar", is_nullable => 0, size => 15 }, | ||||
50 | "imagefile", | ||||
51 | { data_type => "mediumblob", is_nullable => 0 }, | ||||
52 | ); | ||||
53 | |||||
54 | =head1 PRIMARY KEY | ||||
55 | |||||
56 | =over 4 | ||||
57 | |||||
58 | =item * L</borrowernumber> | ||||
59 | |||||
60 | =back | ||||
61 | |||||
62 | =cut | ||||
63 | |||||
64 | 1 | 16µs | 1 | 76µs | __PACKAGE__->set_primary_key("borrowernumber"); # spent 76µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
65 | |||||
66 | =head1 RELATIONS | ||||
67 | |||||
68 | =head2 borrowernumber | ||||
69 | |||||
70 | Type: belongs_to | ||||
71 | |||||
72 | Related object: L<Koha::Schema::Result::Borrower> | ||||
73 | |||||
74 | =cut | ||||
75 | |||||
76 | 1 | 9µs | 1 | 466µs | __PACKAGE__->belongs_to( # spent 466µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
77 | "borrowernumber", | ||||
78 | "Koha::Schema::Result::Borrower", | ||||
79 | { borrowernumber => "borrowernumber" }, | ||||
80 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
81 | ); | ||||
82 | |||||
83 | |||||
84 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 | ||||
85 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uuRGyWlemwOH1PCkvhqxdQ | ||||
86 | |||||
87 | |||||
88 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
89 | 1 | 9µs | 1; |