Fey::Meta::Attribute::FromColumn - An attribute metaclass for column-based attributes


Fey-ORM documentation  | view source Contained in the Fey-ORM distribution.

Index


NAME

Top

Fey::Meta::Attribute::FromColumn - An attribute metaclass for column-based attributes

VERSION

Top

version 0.43

SYNOPSIS

Top

  package MyApp::Song;

  has_table( $schema->table('Song') );

  for my $attr ( grep { $_->can('column') } $self->meta()->get_all_attributes )
  {
      ...
  }

DESCRIPTION

Top

This attribute metaclass is used when Fey::ORM::Table creates attributes for the class's associated table.

METHODS

Top

This class adds a single method to those provided by Moose::Meta::Attribute:

$attr->column()

Returns the Fey::Column object associated with this attribute.

AUTHOR

Top

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

Top


Fey-ORM documentation  | view source Contained in the Fey-ORM distribution.