public function hasAmqpTasksRunning($timetableId, $taskTypeId = AmqpTask::AREA_PDF_GENERATION_TYPE)
    {
        $result = $this->getEntityManager()->getRepository('CanalTPMttBundle:AmqpTask')->findBy(
            array(
                'objectId' => $timetableId,
                'status' => AmqpTask::LAUNCHED_STATUS,
                'typeId' => $taskTypeId
            )
        );

        return count($result) > 0;
    }
public function hasAmqpTasksRunning($timetableId, $taskTypeId = AmqpTask::AREA_PDF_GENERATION_TYPE)
    {
        $result = $this->getEntityManager()->getRepository('CanalTPMttBundle:AmqpTask')->findBy(
            array(
                'objectId' => $timetableId,
                'status' => AmqpTask::LAUNCHED_STATUS,
                'typeId' => $taskTypeId
            )
        );

        return count($result) > 0;
    }
public function hasAmqpTasksRunning ( $ timetableId , $ taskTypeId = AmqpTask :: AREA_PDF_GENERATION_TYPE ) { $ result = $ this -> getEntityManager ( ) -> getRepository ( 'CanalTPMttBundle:AmqpTask' ) -> findBy ( array ( 'objectId' => $ timetableId , 'status' => AmqpTask :: LAUNCHED_STATUS , 'typeId' => $ taskTypeId ) ) ; return count ( $ result ) > 0 ; }
Does this timetable have a task under progress?
@return boolean
Does this timetable have a task under progress?