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

Download:
Fey-ORM-0.45.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Stalled  1
View/Report Bugs
Module Version: 0.45   Source   Latest Release: Fey-ORM-0.46

NAME ^

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

VERSION ^

version 0.45

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>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2011 by Dave Rolsky.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: