Relevant Schema attached.
package foo::Result::AccessPath;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
use strict;
use warnings;
use Moose;
use MooseX::NonMoose;
use namespace::autoclean;
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
=head1 NAME
foo::Result::AccessPath
=cut
__PACKAGE__->table("access_paths");
=head1 ACCESSORS
=head2 path
data_type: 'text'
is_nullable: 0
=cut
__PACKAGE__->add_columns("path", { data_type => "text", is_nullable => 0 });
__PACKAGE__->set_primary_key("path");
=head1 RELATIONS
=head2 auth_paths
Type: has_many
Related object: L<foo::Result::AuthPath>
=cut
__PACKAGE__->has_many(
"auth_paths",
"foo::Result::AuthPath",
{ "foreign.path" => "self.path" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-17 19:47:55
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oCBranK6r9TtBz8GjwolxQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;
package foo::Result::AuthPath;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
use strict;
use warnings;
use Moose;
use MooseX::NonMoose;
use namespace::autoclean;
extends 'DBIx::Class::Core';
__PACKAGE__->load_components("InflateColumn::DateTime");
=head1 NAME
foo::Result::AuthPath
=cut
__PACKAGE__->table("auth_paths");
=head1 ACCESSORS
=head2 username
data_type: 'text'
is_nullable: 0
=head2 path
data_type: 'text'
is_foreign_key: 1
is_nullable: 0
=cut
__PACKAGE__->add_columns(
"username",
{ data_type => "text", is_nullable => 0 },
"path",
{ data_type => "text", is_foreign_key => 1, is_nullable => 0 },
);
__PACKAGE__->set_primary_key("username", "path");
=head1 RELATIONS
=head2 path
Type: belongs_to
Related object: L<foo::Result::AccessPath>
=cut
__PACKAGE__->belongs_to(
"path",
"foo::Result::AccessPath",
{ path => "path" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-17 19:47:55
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WZ4q1F7iYaPVBfIyOU5VCQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;