浏览代码

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

Bernhard Schussek 14 年之前
父节点
当前提交
173beeba74
共有 1 个文件被更改,包括 1 次插入1 次删除
  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()