components/Interpreter.php
private function _removeDisabledRelations()
    {
        if (!$this->attrActive) {
            return false;
        }

        foreach ($this->_relationsToSave as $key => $rel) {

            if (!isset($rel->{$this->attrActive})) {
                continue;
            }

            if (!$rel->validate() && !$rel->{$this->attrActive}) {
                ArrayHelper::remove($this->_relationsToSave, $key);
            }
        }

        return true;
    }
private function _removeDisabledRelations()
    {
        if (!$this->attrActive) {
            return false;
        }

        foreach ($this->_relationsToSave as $key => $rel) {

            if (!isset($rel->{$this->attrActive})) {
                continue;
            }

            if (!$rel->validate() && !$rel->{$this->attrActive}) {
                ArrayHelper::remove($this->_relationsToSave, $key);
            }
        }

        return true;
    }
private function _removeDisabledRelations ( ) { if ( ! $ this -> attrActive ) { return false ; } foreach ( $ this -> _relationsToSave as $ key => $ rel ) { if ( ! isset ( $ rel -> { $ this -> attrActive } ) ) { continue ; } if ( ! $ rel -> validate ( ) && ! $ rel -> { $ this -> attrActive } ) { ArrayHelper :: remove ( $ this -> _relationsToSave , $ key ) ; } } return true ; }
Removed disabled relations when are not valid
@return boolean
Removed disabled relations when are not valid