public function findOrderStatusById($statusId)
    {
        try {
            return $this->em
                ->getRepository(self::$orderStatusEntityName)
                ->find($statusId);
        } catch (NoResultException $nre) {
            throw new EntityNotFoundException(self::$orderStatusEntityName, $statusId);
        }
    }
public function findOrderStatusById($statusId)
    {
        try {
            return $this->em
                ->getRepository(self::$orderStatusEntityName)
                ->find($statusId);
        } catch (NoResultException $nre) {
            throw new EntityNotFoundException(self::$orderStatusEntityName, $statusId);
        }
    }
public function findOrderStatusById ( $ statusId ) { try { return $ this -> em -> getRepository ( self :: $ orderStatusEntityName ) -> find ( $ statusId ) ; } catch ( NoResultException $ nre ) { throw new EntityNotFoundException ( self :: $ orderStatusEntityName , $ statusId ) ; } }
Finds a status by id.

@param int $statusId

@throws EntityNotFoundException

@return OrderStatus
Finds a status by id .