Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 1092 | Rev 1127 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1092 Rev 1121
Línea 118... Línea 118...
118
    {
118
    {
119
        $prototype = new RecruitmentSelectionVacancy();
119
        $prototype = new RecruitmentSelectionVacancy();
Línea 120... Línea 120...
120
        
120
        
121
        $select = $this->sql->select(self::_TABLE);
121
        $select = $this->sql->select(self::_TABLE);
122
        $select->where->equalTo('company_id', $company_id);
122
        $select->where->equalTo('company_id', $company_id);
123
        $select->where->equalTo('topic_id', $vacancy_id);
123
        $select->where->equalTo('vacancy_id', $vacancy_id);
Línea 124... Línea 124...
124
        $select->order(['order', 'name']);
124
        $select->order(['name']);
Línea 125... Línea 125...
125
        
125
        
126
        //echo $select->getSqlString($this->adapter->platform); exit;
126
        //echo $select->getSqlString($this->adapter->platform); exit;
Línea -... Línea 127...
-
 
127
        
-
 
128
        return $this->executeFetchAllObject($select, $prototype);
-
 
129
    }
-
 
130
    
-
 
131
    /**
-
 
132
     * @param int $vacancy_id
-
 
133
     * @param int $candidate_id
-
 
134
     * @return RecruitmentSelectionInterview[]
-
 
135
     */
-
 
136
    public function fetchOneByCandidateIdAndVacancyId($candidate_id, $vacancy_id)
-
 
137
    {
-
 
138
        $prototype = new RecruitmentSelectionInterview();
-
 
139
        
-
 
140
        $select = $this->sql->select(self::_TABLE);
-
 
141
        $select->where->equalTo('candidate_id', $candidate_id);
-
 
142
        $select->where->equalTo('vacancy_id', $vacancy_id);
Línea 127... Línea 143...
127
        
143
        $select->order(['uuid']);
128
        return $this->executeFetchAllObject($select, $prototype);
144
                
129
    }
145
        return $this->executeFetchOneObject($select, $prototype);
130
    
146
    }