$self->get_types

this is an internal and private method used solely for organizing the hashmap of datatypes to Form::Sensible types. Use something like this to organize your own reflector subclass datatypes.

$self->get_field_types_for($datatype)

This gets field definitions for a given datatype and returns them in hashref form.

$self->get_fieldnames()

$self->get_field_definition()

NAME

Form::Sensible::Form::Reflector::DBIC - A reflector class based on Form::Sensible and Form::Sensible::Form::Reflector

VERSION

version 0.0341

SYNOPSIS

my $schema = TestSchema->connect('dbi:SQLite::memory:');
$schema->deploy;
use Form::Sensible;
use Form::Sensible::Reflector::DBIC;
## name must reflect the table which we are reflecting

my $dt = DateTime->now;

my $form = Form::Sensible::Reflector::DBIC->create_form(
    {
        handle => $schema->resultset("Test"),
        form   => { name => 'test' }
    }
);
my $submit_button = Form::Sensible::Field::Trigger->new( name => 'submit' );
my $renderer = Form::Sensible->get_renderer('HTML');

$form->add_field($submit_button);
$form->set_values( { date => $dt } );
my $output = $renderer->render($form)->complete;