NAME
Fey::Meta::Attribute::FromInflator - an attribute metaclass for attributes with an inflator
SYNOPSIS
package MyApp::Song;
has_table( $schema->table('Song') );
for my $attr ( grep { $_->can('raw_attribute') } $self->meta()->get_all_attributes )
{
...
}
DESCRIPTION
This attribute metaclass is used when Fey::ORM::Table creates attributes based on an inflator transform.
METHODS
This class adds a two methods to those provided by Moose::Meta::Attribute
:
$attr->raw_attribute()
Returns the attribute for the raw version of this data. This is the original attribute created for the column, which was renamed when the inflator was declared.
$attr->column()
Returns the Fey::Column object associated with the raw 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.