Guillermo Roditi

NAME

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

SYNOPSIS

  __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;

DESCRIPTION

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

METHODS

register_column

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.

SEE ALSO

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

AUTHOR

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

COPYRIGHT AND LICENSE

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.