| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/AdditionalFieldValue.pm |
| Statements | Executed 0 statements in 0s |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 76µs | 79µs | Class::C3::Componentised::BEGIN@1.1819 |
| 1 | 1 | 1 | 10µs | 19µs | Koha::Schema::Result::AdditionalFieldValue::BEGIN@13 |
| 1 | 1 | 1 | 10µs | 82µs | Koha::Schema::Result::AdditionalFieldValue::BEGIN@16 |
| 1 | 1 | 1 | 8µs | 15µs | Koha::Schema::Result::AdditionalFieldValue::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 82µs | # spent 79µs (76+3) within Class::C3::Componentised::BEGIN@1.1819 which was called:
# once (76µs+3µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 79µs making 1 call to Class::C3::Componentised::BEGIN@1.1819
# spent 3µs making 1 call to utf8::import | ||
| 2 | package Koha::Schema::Result::AdditionalFieldValue; | ||||
| 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::AdditionalFieldValue | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 27µs | # spent 19µs (10+8) within Koha::Schema::Result::AdditionalFieldValue::BEGIN@13 which was called:
# once (10µs+8µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 19µs making 1 call to Koha::Schema::Result::AdditionalFieldValue::BEGIN@13
# spent 8µs making 1 call to strict::import | ||
| 14 | 2 | 21µs | # spent 15µs (8+6) within Koha::Schema::Result::AdditionalFieldValue::BEGIN@14 which was called:
# once (8µs+6µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 15µs making 1 call to Koha::Schema::Result::AdditionalFieldValue::BEGIN@14
# spent 6µs making 1 call to warnings::import | ||
| 15 | |||||
| 16 | 2 | 155µs | # spent 82µs (10+72) within Koha::Schema::Result::AdditionalFieldValue::BEGIN@16 which was called:
# once (10µs+72µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 82µs making 1 call to Koha::Schema::Result::AdditionalFieldValue::BEGIN@16
# spent 72µs making 1 call to base::import | ||
| 17 | |||||
| 18 | =head1 TABLE: C<additional_field_values> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 353µs | __PACKAGE__->table("additional_field_values"); # spent 353µ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 field_id | ||||
| 33 | |||||
| 34 | data_type: 'integer' | ||||
| 35 | is_foreign_key: 1 | ||||
| 36 | is_nullable: 0 | ||||
| 37 | |||||
| 38 | =head2 record_id | ||||
| 39 | |||||
| 40 | data_type: 'integer' | ||||
| 41 | is_nullable: 0 | ||||
| 42 | |||||
| 43 | =head2 value | ||||
| 44 | |||||
| 45 | data_type: 'varchar' | ||||
| 46 | default_value: (empty string) | ||||
| 47 | is_nullable: 0 | ||||
| 48 | size: 255 | ||||
| 49 | |||||
| 50 | =cut | ||||
| 51 | |||||
| 52 | 1 | 1.65ms | __PACKAGE__->add_columns( # spent 1.65ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns | ||
| 53 | "id", | ||||
| 54 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
| 55 | "field_id", | ||||
| 56 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
| 57 | "record_id", | ||||
| 58 | { data_type => "integer", is_nullable => 0 }, | ||||
| 59 | "value", | ||||
| 60 | { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, | ||||
| 61 | ); | ||||
| 62 | |||||
| 63 | =head1 PRIMARY KEY | ||||
| 64 | |||||
| 65 | =over 4 | ||||
| 66 | |||||
| 67 | =item * L</id> | ||||
| 68 | |||||
| 69 | =back | ||||
| 70 | |||||
| 71 | =cut | ||||
| 72 | |||||
| 73 | 1 | 75µs | __PACKAGE__->set_primary_key("id"); # spent 75µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key | ||
| 74 | |||||
| 75 | =head1 UNIQUE CONSTRAINTS | ||||
| 76 | |||||
| 77 | =head2 C<field_record> | ||||
| 78 | |||||
| 79 | =over 4 | ||||
| 80 | |||||
| 81 | =item * L</field_id> | ||||
| 82 | |||||
| 83 | =item * L</record_id> | ||||
| 84 | |||||
| 85 | =back | ||||
| 86 | |||||
| 87 | =cut | ||||
| 88 | |||||
| 89 | 1 | 28µs | __PACKAGE__->add_unique_constraint("field_record", ["field_id", "record_id"]); # spent 28µs making 1 call to DBIx::Class::ResultSourceProxy::add_unique_constraint | ||
| 90 | |||||
| 91 | =head1 RELATIONS | ||||
| 92 | |||||
| 93 | =head2 field | ||||
| 94 | |||||
| 95 | Type: belongs_to | ||||
| 96 | |||||
| 97 | Related object: L<Koha::Schema::Result::AdditionalField> | ||||
| 98 | |||||
| 99 | =cut | ||||
| 100 | |||||
| 101 | 1 | 331µs | __PACKAGE__->belongs_to( # spent 331µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 102 | "field", | ||||
| 103 | "Koha::Schema::Result::AdditionalField", | ||||
| 104 | { id => "field_id" }, | ||||
| 105 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 106 | ); | ||||
| 107 | |||||
| 108 | |||||
| 109 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-10-02 15:12:02 | ||||
| 110 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a9G6nhDU9dBDcRRN0vzkLA | ||||
| 111 | |||||
| 112 | |||||
| 113 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||||
| 114 | 1; |