
DBIx::Class::InflateColumn::Path::Class inflate / deflate values into Path::Class::File or Path::Class::Dir objects

__PACKAGE__->load_components(qw/InflateColumn::Path::Class Core/);
__PACKAGE__->add_columns(
file_path => {
datatype => 'TEXT',
size => 65535,
is_nullable => 1,
is_file => 1, #or is_dir => 1
},
)
#...
$obj->file_path->basename;

This module inflates/deflates designated columns into Path::Class::File or Path::Class::Dir objects.

Extends the original method to setup inflators and deflators for the column. This is an internal method and you should never really have to use it.

Path::Class DBIx::Class DBIx::Class::InflateColumn

Guillermo Roditi (groditi) <groditi@cpan.org>

Copyright (C) 2008 by Guillermo Roditi
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.