public function getOrderTypeEntityById($typeId)
    {
        // Get desired status.
        $typeEntity = $this->orderTypeRepository->find($typeId);
        if (!$typeEntity) {
            throw new EntityNotFoundException($this->orderTypeRepository->getClassName(), $typeId);
        }

        return $typeEntity;
    }
public function getOrderTypeEntityById($typeId)
    {
        // Get desired status.
        $typeEntity = $this->orderTypeRepository->find($typeId);
        if (!$typeEntity) {
            throw new EntityNotFoundException($this->orderTypeRepository->getClassName(), $typeId);
        }

        return $typeEntity;
    }
public function getOrderTypeEntityById ( $ typeId ) { // Get desired status. $ typeEntity = $ this -> orderTypeRepository -> find ( $ typeId ) ; if ( ! $ typeEntity ) { throw new EntityNotFoundException ( $ this -> orderTypeRepository -> getClassName ( ) , $ typeId ) ; } return $ typeEntity ; }
Returns OrderType entity with given id.

@param int $typeId

@throws EntityNotFoundException

@return null|OrderType
Returns OrderType entity with given id .