]> Dogcows Code - chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate/blob - t/lib/DBSchema/Result/Role.pm
fix for a new record that belongs to an old one; accepting row objects in the updates...
[chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate] / t / lib / DBSchema / Result / Role.pm
1 package DBSchema::Result::Role;
2
3 # Created by DBIx::Class::Schema::Loader v0.03000 @ 2006-10-02 08:24:09
4
5 use strict;
6 use warnings;
7
8 use base 'DBIx::Class';
9 use overload '""' => sub {$_[0]->id}, fallback => 1;
10
11 __PACKAGE__->load_components("PK::Auto", "Core");
12 __PACKAGE__->table("role");
13 __PACKAGE__->add_columns(
14 "id" => {
15 data_type => 'integer',
16 is_auto_increment => 1,
17 },
18 "role" => {
19 data_type => 'varchar',
20 size => '100',
21 }
22 );
23 __PACKAGE__->set_primary_key("id");
24 __PACKAGE__->has_many("user_roles", "UserRole", { "foreign.role" => "self.id" });
25 __PACKAGE__->many_to_many('users', 'user_roles' => 'user');
26
27 1;
28
This page took 0.030105 seconds and 4 git commands to generate.