no warnings qw/qw/;
-__PACKAGE__->load_classes(qw/Artist CD Track Tag Producer CD_to_Producer/);
+__PACKAGE__->load_namespaces;
1;
package # hide from PAUSE
- DBICTest::Schema::Artist;
+ DBICTest::Schema::Result::Artist;
use base 'DBIx::Class::Core';
__PACKAGE__->set_primary_key('artistid');
__PACKAGE__->has_many(
- cds => 'DBICTest::Schema::CD', undef,
+ cds => 'DBICTest::Schema::Result::CD', undef,
{ order_by => 'year' },
);
package # hide from PAUSE
- DBICTest::Schema::CD;
+ DBICTest::Schema::Result::CD;
use base 'DBIx::Class::Core';
__PACKAGE__->set_primary_key('cdid');
__PACKAGE__->add_unique_constraint([ qw/artist title/ ]);
-__PACKAGE__->belongs_to( artist => 'DBICTest::Schema::Artist' );
+__PACKAGE__->belongs_to( artist => 'DBICTest::Schema::Result::Artist' );
-__PACKAGE__->has_many( tracks => 'DBICTest::Schema::Track' );
+__PACKAGE__->has_many( tracks => 'DBICTest::Schema::Result::Track' );
__PACKAGE__->has_many(
- tags => 'DBICTest::Schema::Tag', undef,
+ tags => 'DBICTest::Schema::Result::Tag', undef,
{ order_by => 'tag' },
);
__PACKAGE__->has_many(
- cd_to_producer => 'DBICTest::Schema::CD_to_Producer' => 'cd'
+ cd_to_producer => 'DBICTest::Schema::Result::CD_to_Producer' => 'cd'
);
__PACKAGE__->many_to_many( producers => cd_to_producer => 'producer' );
package # hide from PAUSE
- DBICTest::Schema::CD_to_Producer;
+ DBICTest::Schema::Result::CD_to_Producer;
use base 'DBIx::Class::Core';
__PACKAGE__->set_primary_key(qw/cd producer/);
__PACKAGE__->belongs_to(
- 'cd', 'DBICTest::Schema::CD',
+ 'cd', 'DBICTest::Schema::Result::CD',
{ 'foreign.cdid' => 'self.cd' }
);
__PACKAGE__->belongs_to(
- 'producer', 'DBICTest::Schema::Producer',
+ 'producer', 'DBICTest::Schema::Result::Producer',
{ 'foreign.producerid' => 'self.producer' }
);
package # hide from PAUSE
- DBICTest::Schema::Producer;
+ DBICTest::Schema::Result::Producer;
use base 'DBIx::Class::Core';
package # hide from PAUSE
- DBICTest::Schema::Tag;
+ DBICTest::Schema::Result::Tag;
use base qw/DBIx::Class::Core/;
);
__PACKAGE__->set_primary_key('tagid');
-__PACKAGE__->belongs_to( cd => 'DBICTest::Schema::CD' );
+__PACKAGE__->belongs_to( cd => 'DBICTest::Schema::Result::CD' );
1;
package # hide from PAUSE
- DBICTest::Schema::Track;
+ DBICTest::Schema::Result::Track;
use base 'DBIx::Class::Core';
__PACKAGE__->load_components(qw/InflateColumn::DateTime/);
__PACKAGE__->add_unique_constraint([ qw/cd position/ ]);
__PACKAGE__->add_unique_constraint([ qw/cd title/ ]);
-__PACKAGE__->belongs_to( cd => 'DBICTest::Schema::CD' );
+__PACKAGE__->belongs_to( cd => 'DBICTest::Schema::Result::CD' );
1;