public function findByTimetableAndStopPointAndDomId($timetableId, $externalStopPointId, $domId)
    {
        $query = $this->getEntityManager()
            ->createQuery(
                'SELECT block FROM CanalTPMttBundle:Block block
                INNER JOIN block.stopPoint stop_point
                WHERE stop_point.externalId = :externalStopPointId
                AND block.timetable = :timetable
                AND block.domId = :domId'
            )
            ->setParameter('externalStopPointId', $externalStopPointId)
            ->setParameter('timetable', $timetableId)
            ->setParameter('domId', $domId);

        return $query->getOneOrNullResult();
    }
public function findByTimetableAndStopPointAndDomId($timetableId, $externalStopPointId, $domId)
    {
        $query = $this->getEntityManager()
            ->createQuery(
                'SELECT block FROM CanalTPMttBundle:Block block
                INNER JOIN block.stopPoint stop_point
                WHERE stop_point.externalId = :externalStopPointId
                AND block.timetable = :timetable
                AND block.domId = :domId'
            )
            ->setParameter('externalStopPointId', $externalStopPointId)
            ->setParameter('timetable', $timetableId)
            ->setParameter('domId', $domId);

        return $query->getOneOrNullResult();
    }
public function findByTimetableAndStopPointAndDomId ( $ timetableId , $ externalStopPointId , $ domId ) { $ query = $ this -> getEntityManager ( ) -> createQuery ( 'SELECT block FROM CanalTPMttBundle:Block block
                INNER JOIN block.stopPoint stop_point
                WHERE stop_point.externalId = :externalStopPointId
                AND block.timetable = :timetable
                AND block.domId = :domId' ) -> setParameter ( 'externalStopPointId' , $ externalStopPointId ) -> setParameter ( 'timetable' , $ timetableId ) -> setParameter ( 'domId' , $ domId ) ; return $ query -> getOneOrNullResult ( ) ; }
find a block By StopPoint Navitia Id And DomId

@param  string $externalStopPointId Stop point navitia Id
@param  string $domId               Dom Id in layout
@return Block  Entity or null
find a block By StopPoint Navitia Id And DomId