| Fey-ORM documentation | view source | Contained in the Fey-ORM distribution. |
Fey::Meta::Attribute::FromInflator - An attribute metaclass for attributes with an inflator
version 0.43
package MyApp::Song;
has_table( $schema->table('Song') );
for my $attr ( grep { $_->can('raw_attribute') } $self->meta()->get_all_attributes )
{
...
}
This attribute metaclass is used when Fey::ORM::Table creates attributes based on an inflator transform.
This class adds a two methods to those provided by
Moose::Meta::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.
Returns the Fey::Column object associated with the raw attribute.
Dave Rolsky <autarch@urth.org>
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.
| Fey-ORM documentation | view source | Contained in the Fey-ORM distribution. |