Test with own metadata.
[blog.pm-common-perl-mods.git] / Rose-DBx-Object-I18N / t / lib / UserI18N.pm
blob3079286c7a09ba978f357276f3addf48db2bd361
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 lang
18 istran
19 signature
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