We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1357564 commit 80f9280Copy full SHA for 80f9280
lib/form/sfForm.class.php
@@ -610,7 +610,8 @@ public function setValidators(array $validators)
610
*/
611
public function setValidator($name, sfValidatorBase $validator)
612
{
613
- if (isset($this->embeddedForms[$name])) {
+ if (isset($this->embeddedForms[$name]))
614
+ {
615
throw new LogicException('You cannot set a validator for an embedded form.');
616
}
617
@@ -635,7 +636,8 @@ public function getValidator($name)
635
636
throw new InvalidArgumentException(sprintf('The validator "%s" does not exist.', $name));
637
638
639
640
641
return $this->embeddedForms[$name]->getValidatorSchema();
642
643
0 commit comments