components/Interpreter.php
public function setInterpretations($data)
    {
        if ($data && ArrayHelper::getValue($data, $this->viaModel->formName(), false)) {
            $data = $this->pushSecondaryKeys($data, $this->viaModel->formName());

            $this->_relationsToSave = $this->pushMissingInterpretations($this->getInterpretations($data), $data);

            if ($this->_relationsToSave) {
                $this->viaModel->loadMultiple($this->_relationsToSave, $data, $this->viaModel->formName());

                $this->_removeDisabledRelations();
            }
        }

        return $this;
    }
public function setInterpretations($data)
    {
        if ($data && ArrayHelper::getValue($data, $this->viaModel->formName(), false)) {
            $data = $this->pushSecondaryKeys($data, $this->viaModel->formName());

            $this->_relationsToSave = $this->pushMissingInterpretations($this->getInterpretations($data), $data);

            if ($this->_relationsToSave) {
                $this->viaModel->loadMultiple($this->_relationsToSave, $data, $this->viaModel->formName());

                $this->_removeDisabledRelations();
            }
        }

        return $this;
    }
public function setInterpretations ( $ data ) { if ( $ data && ArrayHelper :: getValue ( $ data , $ this -> viaModel -> formName ( ) , false ) ) { $ data = $ this -> pushSecondaryKeys ( $ data , $ this -> viaModel -> formName ( ) ) ; $ this -> _relationsToSave = $ this -> pushMissingInterpretations ( $ this -> getInterpretations ( $ data ) , $ data ) ; if ( $ this -> _relationsToSave ) { $ this -> viaModel -> loadMultiple ( $ this -> _relationsToSave , $ data , $ this -> viaModel -> formName ( ) ) ; $ this -> _removeDisabledRelations ( ) ; } } return $ this ; }
Sets specific model relations attributes
@param array $data relations data to be set
Sets specific model relations attributes