File: Bar.pm

package info (click to toggle)
libdbix-class-helpers-perl 2.023007-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 792 kB
  • ctags: 294
  • sloc: perl: 3,872; sql: 161; makefile: 7
file content (22 lines) | stat: -rw-r--r-- 343 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package ParentSchema::Result::Bar;

use DBIx::Class::Candy -base => 'ParentSchema::Result';

table 'Bar';

column id => {
   data_type => 'integer',
   size => 12,
};

column foo_id => {
   data_type => 'integer',
   keep_storage_value => 1,
};

primary_key 'id';

belongs_to foo => '::Foo', 'foo_id';
has_many  foos => '::Foo', 'bar_id';

1;