Hi,
Does anyone find it odd that DBIx::Class::Validation croaks when
validation fails via $obj->validate?
I understand the need to do this on insert & update, but it seems a
little unorthodox writing code like the following just to check the
validation result:
my $result;
eval { $result = $obj->validate };
$result = $@ if $@;
This can become (more) cumbersome if the validation involves querying the DB.
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]