line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DBIx::Class::Schema::PopulateMore::Inflator::Index; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
2494
|
use Moo; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
12
|
|
4
|
|
|
|
|
|
|
extends 'DBIx::Class::Schema::PopulateMore::Inflator'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
DBIx::Class::Schema::PopulateMore::Inflator::Index - Coerce DateTime from Strings |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 DESCRIPTION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Allows you to make the value equal to the result object of a previously |
13
|
|
|
|
|
|
|
inserted row. |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
This class defines the following attributes. |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 METHODS |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
This module defines the following methods. |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head2 inflate($command, $string) |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
This is called by Populate's dispatcher, when there is a match. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=cut |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub inflate |
30
|
|
|
|
|
|
|
{ |
31
|
25
|
|
|
25
|
1
|
37
|
my ($self, $command, $string) = @_; |
32
|
|
|
|
|
|
|
|
33
|
25
|
|
33
|
|
|
382
|
return $command->get_rs_index($string) |
34
|
|
|
|
|
|
|
|| $command->exception_cb->("Bad Index in Fixture: $string"); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 AUTHOR |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Please see L<DBIx::Class::Schema::PopulateMore> For authorship information |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 LICENSE |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Please see L<DBIx::Class::Schema::PopulateMore> For licensing terms. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=cut |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |