| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/AdditionalField.pm |
| Statements | Executed 14 statements in 544µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 32µs | 36µs | Class::C3::Componentised::BEGIN@1.2327 |
| 1 | 1 | 1 | 12µs | 24µs | Koha::Schema::Result::AdditionalField::BEGIN@13 |
| 1 | 1 | 1 | 11µs | 98µs | Koha::Schema::Result::AdditionalField::BEGIN@16 |
| 1 | 1 | 1 | 9µs | 18µs | Koha::Schema::Result::AdditionalField::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 78µs | 2 | 40µs | # spent 36µs (32+4) within Class::C3::Componentised::BEGIN@1.2327 which was called:
# once (32µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 36µs making 1 call to Class::C3::Componentised::BEGIN@1.2327
# spent 4µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::AdditionalField; | ||||
| 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::AdditionalField | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 44µs | 2 | 35µs | # spent 24µs (12+11) within Koha::Schema::Result::AdditionalField::BEGIN@13 which was called:
# once (12µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 24µs making 1 call to Koha::Schema::Result::AdditionalField::BEGIN@13
# spent 12µs making 1 call to strict::import |
| 14 | 2 | 40µs | 2 | 26µs | # spent 18µs (9+9) within Koha::Schema::Result::AdditionalField::BEGIN@14 which was called:
# once (9µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 18µs making 1 call to Koha::Schema::Result::AdditionalField::BEGIN@14
# spent 9µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 282µs | 2 | 184µs | # spent 98µs (11+87) within Koha::Schema::Result::AdditionalField::BEGIN@16 which was called:
# once (11µs+87µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 98µs making 1 call to Koha::Schema::Result::AdditionalField::BEGIN@16
# spent 87µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<additional_fields> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 20µs | 1 | 326µs | __PACKAGE__->table("additional_fields"); # spent 326µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 id | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | is_auto_increment: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | |||||
| 32 | =head2 tablename | ||||
| 33 | |||||
| 34 | data_type: 'varchar' | ||||
| 35 | default_value: (empty string) | ||||
| 36 | is_nullable: 0 | ||||
| 37 | size: 255 | ||||
| 38 | |||||
| 39 | =head2 name | ||||
| 40 | |||||
| 41 | data_type: 'varchar' | ||||
| 42 | default_value: (empty string) | ||||
| 43 | is_nullable: 0 | ||||
| 44 | size: 255 | ||||
| 45 | |||||
| 46 | =head2 authorised_value_category | ||||
| 47 | |||||
| 48 | data_type: 'varchar' | ||||
| 49 | default_value: (empty string) | ||||
| 50 | is_nullable: 0 | ||||
| 51 | size: 16 | ||||
| 52 | |||||
| 53 | =head2 marcfield | ||||
| 54 | |||||
| 55 | data_type: 'varchar' | ||||
| 56 | default_value: (empty string) | ||||
| 57 | is_nullable: 0 | ||||
| 58 | size: 16 | ||||
| 59 | |||||
| 60 | =head2 searchable | ||||
| 61 | |||||
| 62 | data_type: 'tinyint' | ||||
| 63 | default_value: 0 | ||||
| 64 | is_nullable: 0 | ||||
| 65 | |||||
| 66 | =cut | ||||
| 67 | |||||
| 68 | 1 | 25µs | 1 | 1.17ms | __PACKAGE__->add_columns( # spent 1.17ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 69 | "id", | ||||
| 70 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
| 71 | "tablename", | ||||
| 72 | { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, | ||||
| 73 | "name", | ||||
| 74 | { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, | ||||
| 75 | "authorised_value_category", | ||||
| 76 | { data_type => "varchar", default_value => "", is_nullable => 0, size => 16 }, | ||||
| 77 | "marcfield", | ||||
| 78 | { data_type => "varchar", default_value => "", is_nullable => 0, size => 16 }, | ||||
| 79 | "searchable", | ||||
| 80 | { data_type => "tinyint", default_value => 0, is_nullable => 0 }, | ||||
| 81 | ); | ||||
| 82 | |||||
| 83 | =head1 PRIMARY KEY | ||||
| 84 | |||||
| 85 | =over 4 | ||||
| 86 | |||||
| 87 | =item * L</id> | ||||
| 88 | |||||
| 89 | =back | ||||
| 90 | |||||
| 91 | =cut | ||||
| 92 | |||||
| 93 | 1 | 17µs | 1 | 78µs | __PACKAGE__->set_primary_key("id"); # spent 78µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 94 | |||||
| 95 | =head1 UNIQUE CONSTRAINTS | ||||
| 96 | |||||
| 97 | =head2 C<fields_uniq> | ||||
| 98 | |||||
| 99 | =over 4 | ||||
| 100 | |||||
| 101 | =item * L</tablename> | ||||
| 102 | |||||
| 103 | =item * L</name> | ||||
| 104 | |||||
| 105 | =back | ||||
| 106 | |||||
| 107 | =cut | ||||
| 108 | |||||
| 109 | 1 | 17µs | 1 | 29µs | __PACKAGE__->add_unique_constraint("fields_uniq", ["tablename", "name"]); # spent 29µs making 1 call to DBIx::Class::ResultSourceProxy::add_unique_constraint |
| 110 | |||||
| 111 | =head1 RELATIONS | ||||
| 112 | |||||
| 113 | =head2 additional_field_values | ||||
| 114 | |||||
| 115 | Type: has_many | ||||
| 116 | |||||
| 117 | Related object: L<Koha::Schema::Result::AdditionalFieldValue> | ||||
| 118 | |||||
| 119 | =cut | ||||
| 120 | |||||
| 121 | 1 | 8µs | 1 | 4.38ms | __PACKAGE__->has_many( # spent 4.38ms making 1 call to DBIx::Class::Relationship::HasMany::has_many |
| 122 | "additional_field_values", | ||||
| 123 | "Koha::Schema::Result::AdditionalFieldValue", | ||||
| 124 | { "foreign.field_id" => "self.id" }, | ||||
| 125 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
| 126 | ); | ||||
| 127 | |||||
| 128 | |||||
| 129 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-10-02 15:12:02 | ||||
| 130 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vvz9GJNkU4K7bftDNuRHVA | ||||
| 131 | |||||
| 132 | |||||
| 133 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||||
| 134 | 1 | 14µs | 1; |