Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 7109 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 7109 Rev 7134
Línea 199... Línea 199...
199
         
199
         
200
        return $this->executeFetchAllObject($select, $prototype);
200
        return $this->executeFetchAllObject($select, $prototype);
Línea -... Línea 201...
-
 
201
    }
-
 
202
    
-
 
203
    
-
 
204
    /**
-
 
205
     *
-
 
206
     * @param int $employee_id
-
 
207
     * @return OrganizationPosition[]
-
 
208
     */
-
 
209
    public function fetchAllByEmployeeId($employee_id)
-
 
210
    {
-
 
211
        $prototype = new OrganizationPosition();
-
 
212
        
-
 
213
        $select = $this->sql->select(self::_TABLE);
-
 
214
        $select->where->equalTo('employee_id', $employee_id);
-
 
215
        
-
 
216
        // echo $select->getSqlString($this->adapter->platform); exit;
-
 
217
        
-
 
218
        
-
 
219
        return $this->executeFetchAllObject($select, $prototype);
-
 
220
    }
-
 
221
    
-
 
222
    
-
 
223
    /**
-
 
224
     *
-
 
225
     * @param int $company_id
-
 
226
     * @param int $employee_id
-
 
227
     * @return OrganizationPosition[]
-
 
228
     */
-
 
229
    public function fetchAllByCompanyIdAndEmployeeId($company_id, $employee_id)
-
 
230
    {
-
 
231
        $prototype = new OrganizationPosition();
-
 
232
        
-
 
233
        $select = $this->sql->select(self::_TABLE);
-
 
234
        $select->where->equalTo('company_id', $company_id);
-
 
235
        $select->where->equalTo('employee_id', $employee_id);
-
 
236
 
-
 
237
        // echo $select->getSqlString($this->adapter->platform); exit;
-
 
238
        
-
 
239
        
Línea 201... Línea 240...
201
    }
240
        return $this->executeFetchAllObject($select, $prototype);
202
    
241
    }
203
    
242
    
204
    
243