]>
Dogcows Code - chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate/blob - t/lib/DBSchema/Result/Tag.pm
1 package DBSchema
::Result
::Tag
;
3 # Created by DBIx::Class::Schema::Loader v0.03000 @ 2006-10-02 08:24:09
8 use base
'DBIx::Class';
9 use overload
'""' => sub {$_[0]->name}, fallback
=> 1;
11 __PACKAGE__-
>load_components("PK::Auto", "Core");
12 __PACKAGE__-
>table("tag");
13 __PACKAGE__-
>add_columns(
15 data_type
=> 'integer',
16 is_auto_increment
=> 1
19 data_type
=> 'varchar',
29 __PACKAGE__-
>set_primary_key("id");
30 __PACKAGE__-
>has_many("dvdtags", "Dvdtag", { "foreign.tag" => "self.id" });
31 __PACKAGE__-
>many_to_many('dvds', 'dvdtags' => 'dvd');
This page took 0.036111 seconds and 4 git commands to generate.