]>
iEval git - gruntmaster-data.git/blob - lib/Gruntmaster/Data/Result/ProblemStatus.pm
2 package Gruntmaster
::Data
::Result
::ProblemStatus
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Gruntmaster::Data::Result::ProblemStatus - List of (problem, user, result)
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<problem_status>
22 __PACKAGE__
->table("problem_status");
44 sequence: 'problem_status_job_seq'
52 True if the result is Accepted, False otherwise
56 __PACKAGE__
->add_columns(
58 { data_type
=> "text", is_foreign_key
=> 1, is_nullable
=> 0 },
60 { data_type
=> "text", is_foreign_key
=> 1, is_nullable
=> 0 },
63 data_type
=> "integer",
64 is_auto_increment
=> 1,
67 sequence
=> "problem_status_job_seq",
70 { data_type
=> "boolean", default_value
=> \"false
", is_nullable => 0 },
85 __PACKAGE__->set_primary_key("owner
", "problem
");
93 Related object: L<Gruntmaster::Data::Result::Job>
97 __PACKAGE__->belongs_to(
99 "Gruntmaster
::Data
::Result
::Job
",
101 { is_deferrable => 0, on_delete => "CASCADE
", on_update => "NO ACTION
" },
108 Related object: L<Gruntmaster::Data::Result::User>
112 __PACKAGE__->belongs_to(
114 "Gruntmaster
::Data
::Result
::User
",
116 { is_deferrable => 0, on_delete => "CASCADE
", on_update => "NO ACTION
" },
123 Related object: L<Gruntmaster::Data::Result::Problem>
127 __PACKAGE__->belongs_to(
129 "Gruntmaster
::Data
::Result
::Problem
",
131 { is_deferrable => 0, on_delete => "CASCADE
", on_update => "NO ACTION
" },
135 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-12-19 16:44:22
136 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1OCTO6sM27DamVhQi3dWKg
138 use Class::Method::Modifiers qw/after/;
140 sub rawowner { shift->get_column('owner') }
142 after qw/insert update delete/ => sub {
144 Gruntmaster::Data::purge '/us/';
145 Gruntmaster::Data::purge '/us/' . $self->rawowner;
This page took 0.049876 seconds and 4 git commands to generate.