Filename | /home/vagrant/kohaclone/Koha/Schema/Result/Patronimage.pm |
Statements | Executed 13 statements in 329µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 26µs | 29µs | BEGIN@1.1847 | Class::C3::Componentised::
1 | 1 | 1 | 10µs | 18µs | BEGIN@13 | Koha::Schema::Result::Patronimage::
1 | 1 | 1 | 10µs | 16µs | BEGIN@14 | Koha::Schema::Result::Patronimage::
1 | 1 | 1 | 10µs | 71µs | BEGIN@16 | Koha::Schema::Result::Patronimage::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 74µs | 2 | 32µs | # spent 29µs (26+3) within Class::C3::Componentised::BEGIN@1.1847 which was called:
# once (26µs+3µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 29µs making 1 call to Class::C3::Componentised::BEGIN@1.1847
# spent 3µ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 | 39µs | 2 | 27µs | # spent 18µs (10+8) within Koha::Schema::Result::Patronimage::BEGIN@13 which was called:
# once (10µs+8µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 18µs making 1 call to Koha::Schema::Result::Patronimage::BEGIN@13
# spent 8µs making 1 call to strict::import |
14 | 2 | 43µs | 2 | 21µs | # spent 16µs (10+6) within Koha::Schema::Result::Patronimage::BEGIN@14 which was called:
# once (10µs+6µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 16µs making 1 call to Koha::Schema::Result::Patronimage::BEGIN@14
# spent 6µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 113µs | 2 | 133µs | # spent 71µs (10+61) within Koha::Schema::Result::Patronimage::BEGIN@16 which was called:
# once (10µs+61µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 71µs making 1 call to Koha::Schema::Result::Patronimage::BEGIN@16
# spent 61µs making 1 call to base::import |
17 | |||||
18 | =head1 TABLE: C<patronimage> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 300ns | 1 | 278µs | __PACKAGE__->table("patronimage"); # spent 278µ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 | 19µs | 1 | 274µs | __PACKAGE__->add_columns( # spent 274µ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 | 17µs | 1 | 74µs | __PACKAGE__->set_primary_key("borrowernumber"); # spent 74µ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 | 16µs | 1 | 389µs | __PACKAGE__->belongs_to( # spent 389µ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 | 7µs | 1; |