protected function _addRelation($select)
    {
        // now add a left join with the round table so we have all tokens, also the ones without rounds
        if (!is_null($this->_gemsData['gto_id_relation'])) {
            $select->forWhere('gto_id_relation = ?', $this->_gemsData['gto_id_relation']);
        } else {
            $select->forWhere('gto_id_relation IS NULL');
        }
    }
protected function _addRelation($select)
    {
        // now add a left join with the round table so we have all tokens, also the ones without rounds
        if (!is_null($this->_gemsData['gto_id_relation'])) {
            $select->forWhere('gto_id_relation = ?', $this->_gemsData['gto_id_relation']);
        } else {
            $select->forWhere('gto_id_relation IS NULL');
        }
    }
protected function _addRelation ( $ select ) { // now add a left join with the round table so we have all tokens, also the ones without rounds if ( ! is_null ( $ this -> _gemsData [ 'gto_id_relation' ] ) ) { $ select -> forWhere ( 'gto_id_relation = ?' , $ this -> _gemsData [ 'gto_id_relation' ] ) ; } else { $ select -> forWhere ( 'gto_id_relation IS NULL' ) ; } }
Add relation to the select statement

@param Gems_Tracker_Token_TokenSelect $select
Add relation to the select statement