package Maypole::Model::CDBI;
use base qw(Maypole::Model::Base Class::DBI);
use Class::DBI::AsForm;
+# use Maypole::Form::CDBI;
+use CGI::Untaint;
+# use Maypole::Form;
+
use Class::DBI::FromCGI;
use Class::DBI::Loader;
use Class::DBI::AbstractSearch;
use Class::DBI::Pager;
use Lingua::EN::Inflect::Number qw(to_PL);
-use CGI::Untaint;
+
use strict;
=head1 NAME
$self->meta_info( has_a => $accessor ) ||
return;
- my $mapping = $related->{args}->{mapping};
+ my $mapping = $related->{args}->{mapping} || [];
if ( @$mapping ) {
return $related->{foreign_class}->meta_info('has_a')->{ $$mapping[0] }
->{foreign_class};