[html-formfu] constraints_from_dbic: when to call?

Ian Wells ijw at cack.org.uk
Fri Mar 13 16:48:18 GMT 2009


In my edit function in a Catalyst controller, I have:

sub edit :Local :FormConfig :Args(1) {

[...]

    $form->constraints_from_dbic($table);

    if ($form->submitted_and_valid) {
	$form->model->update($row);

But the DB crashes out with an overly-long string - which it
shouldn't, since the form should trap that and report it.  T

he constraints are created in the form datastructure, but FormFu
hasn't spotted the length violation.  Should I be setting them earlier
or something?

-- 
Ian.



More information about the HTML-FormFu mailing list