| 1 | # ABSTRACT: Attributes and methods for all Schema::Result objects | ||
| 2 | |||
| 3 | package Pinto::Role::Schema::Result; | ||
| 4 | |||
| 5 | 70 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 70 | ▶ | use MooseX::MarkAsMethods ( autoclean => 1 ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | #------------------------------------------------------------------------------ | ||
| 9 | |||
| 10 | 70 | our $VERSION = '0.14'; # VERSION | |
| 11 | |||
| 12 | #------------------------------------------------------------------------------ | ||
| 13 | |||
| 14 | has repo => ( | ||
| 15 | is => 'ro', | ||
| 16 | isa => 'Pinto::Repository', | ||
| 17 | 296 | ▶ | default => sub { $_[0]->result_source->schema->repo }, |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 18 | 70 | init_arg => undef, | |
| 19 | lazy => 1, | ||
| 20 | ); | ||
| 21 | |||
| 22 | #------------------------------------------------------------------------------ | ||
| 23 | |||
| 24 | 431 | ▶ | sub refresh { |
|
Subroutine
refresh: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 25 | 431 | my ($self) = @_; | |
| 26 | |||
| 27 | 431 | $self->discard_changes; | |
| 28 | |||
| 29 | 431 | return $self; | |
| 30 | } | ||
| 31 | |||
| 32 | #------------------------------------------------------------------------------ | ||
| 33 | |||
| 34 | 0 | ▶ | sub refresh_column { |
|
Subroutine
refresh_column: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 35 | 0 | my ( $self, $column ) = @_; | |
| 36 | |||
| 37 | 0 | $self->mark_column_dirty($column); | |
| 38 | |||
| 39 | 0 | return $self->get_column($column); | |
| 40 | } | ||
| 41 | |||
| 42 | #------------------------------------------------------------------------------ | ||
| 43 | |||
| 44 | 70 | 1; | |
| 45 | |||
| 46 | __END__ | ||