]>
Dogcows Code - chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate/blob - t/lib/DBSchema/Result/Dvd.pm
4908080ee9893275207e91b7d690fae134eb6875
1 package DBSchema
::Result
::Dvd
;
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 use lib
'../../DBIx-Class-HTML-FormFu/lib/';
12 __PACKAGE__-
>load_components(qw
/IntrospectableM2M Core/);
13 __PACKAGE__-
>table('dvd');
14 __PACKAGE__-
>add_columns(
16 data_type
=> 'integer',
17 is_auto_increment
=> 1
20 data_type
=> 'varchar',
25 data_type
=> 'varchar',
29 'owner' => { data_type
=> 'integer' },
30 'current_borrower' => {
31 data_type
=> 'integer',
36 data_type
=> 'datetime',
40 data_type
=> 'datetime',
44 __PACKAGE__-
>set_primary_key('id');
45 __PACKAGE__-
>belongs_to('owner', 'User', { id
=> 'owner' });
46 __PACKAGE__-
>belongs_to('current_borrower', 'User', { id
=> 'current_borrower' });
47 __PACKAGE__-
>has_many('dvdtags', 'Dvdtag', { 'foreign.dvd' => 'self.id' });
48 __PACKAGE__-
>many_to_many('tags', 'dvdtags' => 'tag');
49 __PACKAGE__-
>might_have(
50 liner_notes
=> 'DBSchema::Result::LinerNotes', undef,
51 { proxy
=> [ qw
/notes/ ] },
This page took 0.032108 seconds and 4 git commands to generate.