[Form] Fix two cases where deprecated methods were being used
This commit is contained in:
parent
b8cdbdc69f
commit
1d8211249b
|
@ -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;
|
||||
|
|
|
@ -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()
|
||||
|
|
Reference in New Issue