Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## error
- BoyosPlace::Schema::Result::Users::add_to_user_roles(): Can't find source for BoyosPlace::Schema::UserRoles at /home/devin/web-devel/boyosplace/script/../lib/BoyosPlace/Schema/ResultSet/Users.pm line 157
- ##
- package BoyosPlace::Schema::UserRoles;
- use strict;
- use warnings;
- use base 'DBIx::Class';
- __PACKAGE__->load_components(
- "InflateColumn::DateTime",
- "InflateColumn::FS",
- "PK::Auto",
- "Core",
- );
- __PACKAGE__->table("user_roles");
- __PACKAGE__->add_columns(
- "userid",
- { data_type => "INT", default_value => 0, is_nullable => 0, size => 11 },
- "roleid",
- { data_type => "INT", default_value => 0, is_nullable => 0, size => 11 },
- );
- __PACKAGE__->set_primary_key("userid", "roleid");
- # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-01 02:57:02
- # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kX/SSWbHQzKHc9uHxGmPUQ
- __PACKAGE__->belongs_to("role", "BoyosPlace::Schema::Roles", { roleid => "roleid" });
- __PACKAGE__->belongs_to("user", "BoyosPlace::Schema::Users", { userid => "userid" });
- 1;
- ##
- package BoyosPlace::Schema::Result::UserRoles;
- use strict;
- use warnings;
- use base 'DBIx::Class';
- __PACKAGE__->load_components(
- "InflateColumn::DateTime",
- "PK::Auto",
- "Core",
- );
- __PACKAGE__->table("user_roles");
- __PACKAGE__->add_columns(
- "userid",
- { data_type => "INT", default_value => 0, is_nullable => 0, size => 11 },
- "roleid",
- { data_type => "INT", default_value => 0, is_nullable => 0, size => 11 },
- );
- __PACKAGE__->set_primary_key("userid", "roleid");
- # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-12-01 02:57:02
- # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kX/SSWbHQzKHc9uHxGmPUQ
- __PACKAGE__->belongs_to("role", "BoyosPlace::Schema::Roles", { roleid => "roleid" });
- __PACKAGE__->belongs_to("user", "BoyosPlace::Schema::Users", { userid => "userid" });
- 1;
Add Comment
Please, Sign In to add comment