public function getErrors($attribute = null)
    {
        $itemErrors = [];

        foreach ($this->getItems() as $item) {
            if ($item->hasErrors($attribute)) {
                $itemErrors[$this->getItemId($item)] = $item->getErrors($attribute);
            }
        }

        return array_merge(
            $this->_traitGetErrors($attribute),
            $itemErrors
        );
    }
public function getErrors($attribute = null)
    {
        $itemErrors = [];

        foreach ($this->getItems() as $item) {
            if ($item->hasErrors($attribute)) {
                $itemErrors[$this->getItemId($item)] = $item->getErrors($attribute);
            }
        }

        return array_merge(
            $this->_traitGetErrors($attribute),
            $itemErrors
        );
    }
public function getErrors ( $ attribute = null ) { $ itemErrors = [ ] ; foreach ( $ this -> getItems ( ) as $ item ) { if ( $ item -> hasErrors ( $ attribute ) ) { $ itemErrors [ $ this -> getItemId ( $ item ) ] = $ item -> getErrors ( $ attribute ) ; } } return array_merge ( $ this -> _traitGetErrors ( $ attribute ) , $ itemErrors ) ; }
Merge errors from all
@inheritdoc
Merge errors from all