moniker clashes #4

Closed
opened 2011-07-26 14:53:23 +00:00 by mjgardner · 1 comment
mjgardner commented 2011-07-26 14:53:23 +00:00 (Migrated from github.com)

From Josh at Shutterstock:

Unable to load schema - chosen moniker/class naming style results in moniker clashes. Either change the naming style, or supply an explicit moniker_map: tables 'newsletter', 'newsletters' reduced to the same source moniker 'Newsletter' at /home/joshr/opt/perl-5.12.2/lib/site_perl/5.12.2/MooseX/Types/TypeDecorator.pm line 157 MooseX::Types::TypeDecorator::AUTOLOAD('MooseX::Types::TypeDecorator=HASH(0x105216e8)', 'ARRAY(0x108bf4e0)') called at /home/joshr/opt/perl-5.12.2/lib/site_perl/5.12.2/DBIx/Class/Schema/Critic.pm line 49 DBIx::Class::Schema::Critic::__ANON__('DBIx::Class::Schema::Critic=HASH(0x108bf408)') called at reader DBIx::Class::Schema::Critic::schema (defined at /home/joshr/opt/perl-5.12.2/lib/site_perl/5.12.2/DBIx/Class/Schema/Critic.pm line 51) line 6 DBIx::Class::Schema::Critic::schema('DBIx::Class::Schema::Critic=HASH(0x108bf408)') called at /home/joshr/opt/perl-5.12.2/lib/site_perl/5.12.2/DBIx/Class/Schema/Critic.pm line 60 DBIx::Class::Schema::Critic::_build__elements('DBIx::Class::Schema::Critic=HASH(0x108bf408)') called at native delegation method DBIx::Class::Schema::Critic::_element_names (keys) of attribute _elements (defined at /home/joshr/opt/perl-5.12.2/lib/site_perl/5.12.2/DBIx/Class/Schema/Critic.pm line 53) line 8 DBIx::Class::Schema::Critic::_element_names('DBIx::Class::Schema::Critic=HASH(0x108bf408)') called at /home/joshr/opt/perl-5.12.2/lib/site_perl/5.12.2/DBIx/Class/Schema/Critic.pm line 78 DBIx::Class::Schema::Critic::__ANON__('DBIx::Class::Schema::Critic=HASH(0x108bf408)') called at native delegation method DBIx::Class::Schema::Critic::violations (elements) of attribute _violations (defined at /home/joshr/opt/perl-5.12.2/lib/site_perl/5.12.2/DBIx/Class/Schema/Critic.pm line 81) line 7 DBIx::Class::Schema::Critic::violations('DBIx::Class::Schema::Critic=HASH(0x108bf408)') called at /home/joshr/opt/perl-5.12.2/lib/site_perl/5.12.2/DBIx/Class/Schema/Critic.pm line 69 DBIx::Class::Schema::Critic::critique('DBIx::Class::Schema::Critic=HASH(0x108bf408)') called at bin/dbic_critic line 9

From Josh at Shutterstock: > `Unable to load schema - chosen moniker/class naming style results in moniker clashes. Either change the naming style, or supply an explicit moniker_map: tables 'newsletter', 'newsletters' reduced to the same source moniker 'Newsletter' > at /home/joshr/opt/perl-5.12.2/lib/site_perl/5.12.2/MooseX/Types/TypeDecorator.pm line 157 > MooseX::Types::TypeDecorator::AUTOLOAD('MooseX::Types::TypeDecorator=HASH(0x105216e8)', 'ARRAY(0x108bf4e0)') called at /home/joshr/opt/perl-5.12.2/lib/site_perl/5.12.2/DBIx/Class/Schema/Critic.pm line 49 > DBIx::Class::Schema::Critic::__ANON__('DBIx::Class::Schema::Critic=HASH(0x108bf408)') called at reader DBIx::Class::Schema::Critic::schema (defined at /home/joshr/opt/perl-5.12.2/lib/site_perl/5.12.2/DBIx/Class/Schema/Critic.pm line 51) line 6 > DBIx::Class::Schema::Critic::schema('DBIx::Class::Schema::Critic=HASH(0x108bf408)') called at /home/joshr/opt/perl-5.12.2/lib/site_perl/5.12.2/DBIx/Class/Schema/Critic.pm line 60 > DBIx::Class::Schema::Critic::_build__elements('DBIx::Class::Schema::Critic=HASH(0x108bf408)') called at native delegation method DBIx::Class::Schema::Critic::_element_names (keys) of attribute _elements (defined at /home/joshr/opt/perl-5.12.2/lib/site_perl/5.12.2/DBIx/Class/Schema/Critic.pm line 53) line 8 > DBIx::Class::Schema::Critic::_element_names('DBIx::Class::Schema::Critic=HASH(0x108bf408)') called at /home/joshr/opt/perl-5.12.2/lib/site_perl/5.12.2/DBIx/Class/Schema/Critic.pm line 78 > DBIx::Class::Schema::Critic::__ANON__('DBIx::Class::Schema::Critic=HASH(0x108bf408)') called at native delegation method DBIx::Class::Schema::Critic::violations (elements) of attribute _violations (defined at /home/joshr/opt/perl-5.12.2/lib/site_perl/5.12.2/DBIx/Class/Schema/Critic.pm line 81) line 7 > DBIx::Class::Schema::Critic::violations('DBIx::Class::Schema::Critic=HASH(0x108bf408)') called at /home/joshr/opt/perl-5.12.2/lib/site_perl/5.12.2/DBIx/Class/Schema/Critic.pm line 69 > DBIx::Class::Schema::Critic::critique('DBIx::Class::Schema::Critic=HASH(0x108bf408)') called at bin/dbic_critic line 9`
mjgardner commented 2011-07-26 17:49:21 +00:00 (Migrated from github.com)

fixed in 33d246a, please test

fixed in 33d246a, please test
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mjg/perl-App-DBCritic#4
No description provided.