thelia type constraints
This commit is contained in:
@@ -65,7 +65,11 @@ class TaxCreationForm extends BaseForm
|
|||||||
$this->formBuilder
|
$this->formBuilder
|
||||||
->add($type . '_' . $name, new TheliaType(), array(
|
->add($type . '_' . $name, new TheliaType(), array(
|
||||||
"instance" => $requirementType,
|
"instance" => $requirementType,
|
||||||
"constraints" => array(new NotBlank()),
|
"constraints" => array(
|
||||||
|
"methods" => array(
|
||||||
|
array($this, "verifyTaxId"),
|
||||||
|
),
|
||||||
|
),
|
||||||
"attr" => array(
|
"attr" => array(
|
||||||
"tag" => "requirements",
|
"tag" => "requirements",
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user