protected function _getTrlRow($proxiedRow, $componentId)
    {
        $row = null;
        $proxyId = $proxiedRow->id;
        $select = $this->_trlModel->select()
            ->whereEquals('component_id', $componentId)
            ->whereEquals('master_id', $proxyId);
        $trlRow = $this->_trlModel->getRows($select)->current();
        if ($trlRow) {
            $row = $trlRow;
        } else {
            $row = $this->_trlModel->createRow();
            $row->master_id = $proxyId;
            $row->component_id = $componentId;
            $row->save();
        }
        return $row;
    }
protected function _getTrlRow($proxiedRow, $componentId)
    {
        $row = null;
        $proxyId = $proxiedRow->id;
        $select = $this->_trlModel->select()
            ->whereEquals('component_id', $componentId)
            ->whereEquals('master_id', $proxyId);
        $trlRow = $this->_trlModel->getRows($select)->current();
        if ($trlRow) {
            $row = $trlRow;
        } else {
            $row = $this->_trlModel->createRow();
            $row->master_id = $proxyId;
            $row->component_id = $componentId;
            $row->save();
        }
        return $row;
    }
protected function _getTrlRow ( $ proxiedRow , $ componentId ) { $ row = null ; $ proxyId = $ proxiedRow -> id ; $ select = $ this -> _trlModel -> select ( ) -> whereEquals ( 'component_id' , $ componentId ) -> whereEquals ( 'master_id' , $ proxyId ) ; $ trlRow = $ this -> _trlModel -> getRows ( $ select ) -> current ( ) ; if ( $ trlRow ) { $ row = $ trlRow ; } else { $ row = $ this -> _trlModel -> createRow ( ) ; $ row -> master_id = $ proxyId ; $ row -> component_id = $ componentId ; $ row -> save ( ) ; } return $ row ; }
returns the related trl-row
returns the related trl - row