Tests with column types.
[blog.pm-common-perl-mods.git] / Rose-DBx-Object-I18N / t / lib / UserI18N.pm
blobb64ef8da7f93dae6d129c32d7d0ceb46aae66eb3
1 package UserI18N;
3 use strict;
5 use base qw/ DB::Object::I18N /;
7 use Metadata;
8 sub meta_class { 'Metadata' }
10 __PACKAGE__->meta->setup(
11 table => 'user_i18n',
13 columns => [
14 qw/
15 i18nid
16 user_id
17 signature
19 lang => { type => 'i18n_language' },
20 istran => { type => 'i18n_is_translation' }
23 primary_key_columns => [ 'i18nid' ],
25 relationships => [
26 user => {
27 class => 'User',
28 key_columns => { user_id => 'id' },
29 type => 'many to one',
33 i18n_static_rel_name => 'user'
36 =head1 AUTHOR
38 vti
40 =head1 LICENSE
42 This library is free software, you can redistribute it and/or modify
43 it under the same terms as Perl itself.
45 =cut