Explorar o código

[Form] FormView::offsetUnset() is now supported. It was possible anyway using getChildren() and setChildren().

Bernhard Schussek %!s(int64=14) %!d(string=hai) anos
pai
achega
173beeba74
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Symfony/Component/Form/FormView.php

+ 1 - 1
src/Symfony/Component/Form/FormView.php

@@ -147,7 +147,7 @@ class FormView implements \ArrayAccess, \IteratorAggregate, \Countable
 
     public function offsetUnset($name)
     {
-        throw new \BadMethodCallException('Not supported');
+        unset($this->children[$name]);
     }
 
     public function getIterator()