# NEVER EDIT this file. It was generated and will be overwritten without # notice upon regeneration of this application. You have been warned. package Contact::Model::color; use strict; use warnings; __PACKAGE__->load_components( qw/ InflateColumn::DateTime Core / ); __PACKAGE__->table( 'color' ); __PACKAGE__->add_columns( qw/ id ident foreigner / ); __PACKAGE__->set_primary_key( 'id' ); __PACKAGE__->belongs_to( foreigner => 'Contact::Model::sch_name' ); __PACKAGE__->base_model( 'Contact::Model' ); __PACKAGE__->has_many( tshirt_colors => 'Contact::Model::tshirt_color', 'color' ); __PACKAGE__->many_to_many( tshirts => 'tshirt_colors', 'tshirt' ); sub get_foreign_tables { return qw( Contact::Model::sch_name ); } sub table_name { return 'color'; } 1; =head1 NAME Contact::Model::GEN::color - model for color table (generated part) =head1 DESCRIPTION This model inherits from Gantry::Utils::DBIxClass. It was generated by Bigtop, and IS subject to regeneration. =head1 METHODS You may use all normal Gantry::Utils::DBIxClass methods and the ones listed here: =over 4 =item get_foreign_display_fields =item get_foreign_tables =item foreign_display =item table_name =back =cut