Dave Rolsky > Fey-ORM > Fey::Meta::Attribute::FromColumn

Download:
Fey-ORM-0.30.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs

Module Version: 0.30   Source  

NAME ^

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

SYNOPSIS ^

  package MyApp::Song;

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

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

DESCRIPTION ^

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

METHODS ^

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 ^

Dave Rolsky, <autarch@urth.org>

BUGS ^

See Fey::ORM for details.

COPYRIGHT & LICENSE ^

Copyright 2006-2009 Dave Rolsky, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module.