view release on metacpan or search on metacpan
examples/demo/lib/DemoAppMusicSchema/Result/Album.pm view on Meta::CPAN
Type: has_many
Related object: L<DemoAppMusicSchema::Result::AlbumArtist>
=cut
__PACKAGE__->has_many(
"album_artists",
"DemoAppMusicSchema::Result::AlbumArtist",
{ "foreign.album_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
=head2 sleeve_note
Type: might_have
Related object: L<DemoAppMusicSchema::Result::SleeveNote>
=cut
__PACKAGE__->might_have(
"sleeve_note",
"DemoAppMusicSchema::Result::SleeveNote",
{ "foreign.album_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
=head2 tracks
Type: has_many
Related object: L<DemoAppMusicSchema::Result::Track>
=cut
__PACKAGE__->has_many(
"tracks",
"DemoAppMusicSchema::Result::Track",
{ "foreign.album_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-09 18:35:04
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Wx/g9tUF3BQeBJF1TGW+Ow
sub display_name {
my $row = shift;
return $row->title;
examples/demo/lib/DemoAppMusicSchema/Result/Artist.pm view on Meta::CPAN
Type: has_many
Related object: L<DemoAppMusicSchema::Result::AlbumArtist>
=cut
__PACKAGE__->has_many(
"album_artists",
"DemoAppMusicSchema::Result::AlbumArtist",
{ "foreign.artist_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-09 18:35:04
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/cC4ho3u/1FpNRWfIFUSPA
sub display_name {
my $row = shift;
return join ' ', $row->forename, $row->surname;
examples/demo/lib/DemoAppMusicSchema/Result/Copyright.pm view on Meta::CPAN
Type: has_many
Related object: L<DemoAppMusicSchema::Result::Track>
=cut
__PACKAGE__->has_many(
"tracks",
"DemoAppMusicSchema::Result::Track",
{ "foreign.copyright_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-09 18:35:04
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XrtTaWWL6OkKBm+Aa7mqcw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
examples/demo/lib/DemoAppOtherFeaturesSchema/Result/Artist.pm view on Meta::CPAN
__PACKAGE__->set_primary_key("id");
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-09 22:57:40
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mp93WyFXfmIn3pMlS2v9Og
__PACKAGE__->has_many(
artist_undirected_maps =>
"DemoAppOtherFeaturesSchema::Result::ArtistUndirectedMap",
[ {'foreign.id1' => 'self.artistid'}, {'foreign.id2' => 'self.artistid'} ],
{ cascade_copy => 0 } # this would *so* not make sense
);
1;
examples/demo/lib/DemoAppOtherFeaturesSchema/Result/ArtistUndirectedMap.pm view on Meta::CPAN
);
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-09 22:57:40
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VhZsXie8Ii05u8wJy/1fGA
__PACKAGE__->has_many(
'mapped_artists', 'DemoAppOtherFeaturesSchema::Result::Artist',
[ {'foreign.artistid' => 'self.id1'}, {'foreign.artistid' => 'self.id2'} ],
{ cascade_delete => 0 },
);
1;
examples/demo/lib/DemoAppOtherFeaturesSchema/Result/Link.pm view on Meta::CPAN
Type: has_many
Related object: L<DemoAppOtherFeaturesSchema::Result::Bookmark>
=cut
__PACKAGE__->has_many(
"bookmarks",
"DemoAppOtherFeaturesSchema::Result::Bookmark",
{ "foreign.link" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-09 22:57:40
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fTj7wkc3cVkTC5JFlHFOtA
use overload '""' => sub { shift->url }, fallback=> 1;
1;
examples/demo/lib/DemoAppOtherFeaturesSchema/Result/RefA.pm view on Meta::CPAN
Type: has_many
Related object: L<DemoAppOtherFeaturesSchema::Result::B>
=cut
__PACKAGE__->has_many(
"ref_bs",
"DemoAppOtherFeaturesSchema::Result::RefB",
{ "foreign.ref_a" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-15 14:58:19
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XLBJfiY2TVbu0hULuLKzTw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
examples/demo/lib/DemoAppOtherFeaturesSchema/Result/Reference.pm view on Meta::CPAN
Type: has_many
Related object: L<DemoAppOtherFeaturesSchema::Result::A>
=cut
__PACKAGE__->has_many(
"ref_a",
"DemoAppOtherFeaturesSchema::Result::RefA",
{ "foreign.reference" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
=head2 bs
Type: has_many
Related object: L<DemoAppOtherFeaturesSchema::Result::B>
=cut
__PACKAGE__->has_many(
"ref_bs",
"DemoAppOtherFeaturesSchema::Result::RefB",
{ "foreign.reference" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-15 14:58:19
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XhHAxU8Fcum4DoJrn3+okQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
examples/demo/lib/DemoAppOtherFeaturesSchema/Result/SelfRef.pm view on Meta::CPAN
Type: has_many
Related object: L<DemoAppOtherFeaturesSchema::Result::SelfRefAlias>
=cut
__PACKAGE__->has_many(
"aliases",
"DemoAppOtherFeaturesSchema::Result::SelfRefAlias",
{ "foreign.self_ref" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-09 22:57:40
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4xcB0hpKEVkyg5e8W4eVLA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;