MojoMojo::Schema::Result::Link - Links among pages


MojoMojo documentation Contained in the MojoMojo distribution.

Index


Code Index:

NAME

Top

MojoMojo::Schema::Result::Link - Links among pages

ATTRIBUTES

Top

from_page

MojoMojo::Schema::Result::Page object being the source of a link

to_page

MojoMojo::Schema::Result::Page object being the target of a link

AUTHOR

Top

Marcus Ramberg <mramberg@cpan.org>

LICENSE

Top

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.


MojoMojo documentation Contained in the MojoMojo distribution.
package MojoMojo::Schema::Result::Link;

use strict;
use warnings;

use parent 'MojoMojo::Schema::Base::Result';

__PACKAGE__->load_components( "Core" );
__PACKAGE__->table("link");
__PACKAGE__->add_columns(
    "id",
    { data_type => "INTEGER", is_nullable => 0, size => undef, is_auto_increment => 1 },
    "from_page",
    { data_type => "INTEGER", is_nullable => 0, size => undef },
    "to_page",
    { data_type => "INTEGER", is_nullable => 0, size => undef },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to( "from_page", "MojoMojo::Schema::Result::Page", { id => "from_page" } );
__PACKAGE__->belongs_to( "to_page",   "MojoMojo::Schema::Result::Page", { id => "to_page" } );


1;