components/Interpreter.php
public function getInterpretations($data = null)
    {
        $condition = [$this->relPrimaryKey => $this->owner->primaryKey];

        $restriction = $this->_getRestriction($data, $this->relSecondaryKey, false);

        if ($restriction) {
            $condition = ArrayHelper::merge($condition, $restriction);
        }

        return ArrayHelper::merge($this->viaModel->find()
                    ->where($condition)
                    ->andWhere(['not in', $this->relSecondaryKey, array_keys($this->_relationsToSave)])
                    ->indexBy($this->relSecondaryKey)
                    ->all(), $this->_relationsToSave);
    }
public function getInterpretations($data = null)
    {
        $condition = [$this->relPrimaryKey => $this->owner->primaryKey];

        $restriction = $this->_getRestriction($data, $this->relSecondaryKey, false);

        if ($restriction) {
            $condition = ArrayHelper::merge($condition, $restriction);
        }

        return ArrayHelper::merge($this->viaModel->find()
                    ->where($condition)
                    ->andWhere(['not in', $this->relSecondaryKey, array_keys($this->_relationsToSave)])
                    ->indexBy($this->relSecondaryKey)
                    ->all(), $this->_relationsToSave);
    }
public function getInterpretations ( $ data = null ) { $ condition = [ $ this -> relPrimaryKey => $ this -> owner -> primaryKey ] ; $ restriction = $ this -> _getRestriction ( $ data , $ this -> relSecondaryKey , false ) ; if ( $ restriction ) { $ condition = ArrayHelper :: merge ( $ condition , $ restriction ) ; } return ArrayHelper :: merge ( $ this -> viaModel -> find ( ) -> where ( $ condition ) -> andWhere ( [ 'not in' , $ this -> relSecondaryKey , array_keys ( $ this -> _relationsToSave ) ] ) -> indexBy ( $ this -> relSecondaryKey ) -> all ( ) , $ this -> _relationsToSave ) ; }
Retrieves interpretations based on gived data
@param array $data
Retrieves interpretations based on gived data