File: Foo.pm

package info (click to toggle)
libdbix-class-helpers-perl 2.036000-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,008 kB
  • sloc: perl: 5,041; sql: 537; makefile: 7
file content (21 lines) | stat: -rw-r--r-- 329 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package ParentSchema::Result::Foo;

use DBIx::Class::Candy;

table 'Foo';

column id => {
   data_type => 'integer',
   is_numeric => 1,
};

column bar_id => {
   data_type => 'integer'
};

primary_key 'id';

belongs_to bar =>  'ParentSchema::Result::Bar', 'bar_id';
has_many   bars => 'ParentSchema::Result::Bar', 'foo_id';

1;