[Form] Fix two cases where deprecated methods were being used

This commit is contained in:
Colin Frei 2012-12-14 23:17:14 +01:00
parent b8cdbdc69f
commit 1d8211249b
2 changed files with 2 additions and 2 deletions

View File

@ -655,7 +655,7 @@ class Form implements \IteratorAggregate, FormInterface
*/
public function addError(FormError $error)
{
if ($this->parent && $this->getErrorBubbling()) {
if ($this->parent && $this->config->getErrorBubbling()) {
$this->parent->addError($error);
} else {
$this->errors[] = $error;

View File

@ -23,7 +23,7 @@ class VirtualFormAwareIterator extends \ArrayIterator implements \RecursiveItera
{
public function getChildren()
{
return new self($this->current()->getChildren());
return new self($this->current()->all());
}
public function hasChildren()