]>
iEval git - gruntmaster-data.git/blob - lib/Gruntmaster/Data/Result/ContestStatus.pm
2 package Gruntmaster
::Data
::Result
::ContestStatus
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Gruntmaster::Data::Result::ContestStatus - List of (contest, user, result)
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<contest_status>
22 __PACKAGE__
->table("contest_status");
50 __PACKAGE__
->add_columns(
52 { data_type
=> "text", is_foreign_key
=> 1, is_nullable
=> 0 },
54 { data_type
=> "text", is_foreign_key
=> 1, is_nullable
=> 0 },
56 { data_type
=> "integer", is_nullable
=> 0 },
58 { data_type
=> "integer", is_nullable
=> 0 },
73 __PACKAGE__
->set_primary_key("owner", "contest");
81 Related object: L<Gruntmaster::Data::Result::Contest>
85 __PACKAGE__
->belongs_to(
87 "Gruntmaster::Data::Result::Contest",
89 { is_deferrable
=> 0, on_delete
=> "CASCADE", on_update
=> "NO ACTION" },
96 Related object: L<Gruntmaster::Data::Result::User>
100 __PACKAGE__
->belongs_to(
102 "Gruntmaster::Data::Result::User",
104 { is_deferrable
=> 0, on_delete
=> "CASCADE", on_update
=> "NO ACTION" },
108 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-12-19 16:44:22
109 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IkY4FNON0SrxrP8oNOXoHg
111 use Class
::Method
::Modifiers qw
/after/;
113 sub rawowner
{ shift->get_column('owner') }
115 after qw
/insert update delete/ => sub {
117 Gruntmaster
::Data
::purge
'/us/';
118 Gruntmaster
::Data
::purge
'/us/' . $self->rawowner;
This page took 0.046887 seconds and 4 git commands to generate.