Explorar el Código

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

Bernhard Schussek hace 14 años
padre
commit
173beeba74
Se han modificado 1 ficheros con 1 adiciones y 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()