Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 543 Rev 550
Línea 280... Línea 280...
280
        $delete->where->equalTo('id', $jobDescription->id);
280
        $delete->where->equalTo('id', $jobDescription->id);
Línea 281... Línea 281...
281
 
281
 
282
        return $this->executeDelete($delete);
282
        return $this->executeDelete($delete);
Línea -... Línea 283...
-
 
283
    }
-
 
284
 
-
 
285
    /**
-
 
286
     *
-
 
287
     * @return JobDescription[]
-
 
288
     */
-
 
289
    public function fetchAllActivesByCompanyId($company_id) {
-
 
290
        $prototype = new JobDescription();
-
 
291
        $select = $this->sql->select(self::_TABLE);
-
 
292
        $select->where->equalTo('company_id', $company_id);
-
 
293
        $select->where->equalTo('status', JobDescription::STATUS_ACTIVE);
-
 
294
        $select->order('name ASC');
-
 
295
 
-
 
296
        return $this->executeFetchAllObject($select, $prototype);
283
    }
297
    }