Filename | /home/vagrant/kohaclone/Koha/Schema/Result/Patronimage.pm |
Statements | Executed 0 statements in 0s |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 34µs | 39µs | BEGIN@1.667 | Class::C3::Componentised::
1 | 1 | 1 | 18µs | 29µs | BEGIN@14 | Koha::Schema::Result::Patronimage::
1 | 1 | 1 | 10µs | 21µs | BEGIN@13 | 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 | 43µs | # spent 39µs (34+4) within Class::C3::Componentised::BEGIN@1.667 which was called:
# once (34µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 39µs making 1 call to Class::C3::Componentised::BEGIN@1.667
# 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 | 32µs | # spent 21µs (10+11) within Koha::Schema::Result::Patronimage::BEGIN@13 which was called:
# once (10µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 21µs making 1 call to Koha::Schema::Result::Patronimage::BEGIN@13
# spent 11µs making 1 call to strict::import | ||
14 | 2 | 40µs | # spent 29µs (18+11) within Koha::Schema::Result::Patronimage::BEGIN@14 which was called:
# once (18µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 29µs making 1 call to Koha::Schema::Result::Patronimage::BEGIN@14
# spent 11µs making 1 call to warnings::import | ||
15 | |||||
16 | 2 | 163µs | # spent 87µs (10+76) within Koha::Schema::Result::Patronimage::BEGIN@16 which was called:
# once (10µs+76µ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 76µs making 1 call to base::import | ||
17 | |||||
18 | =head1 TABLE: C<patronimage> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 551µs | __PACKAGE__->table("patronimage"); # spent 551µ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 | 278µs | __PACKAGE__->add_columns( # spent 278µ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 | 79µs | __PACKAGE__->set_primary_key("borrowernumber"); # spent 79µ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 | 344µs | __PACKAGE__->belongs_to( # spent 344µ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; |