src/Sulu/Bundle/Sales/OrderBundle/Order/OrderManager.php
public function findOrderEntityById($id)
    {
        try {
            return $this->em
                ->getRepository(static::$orderEntityName)
                ->find($id);
        } catch (NoResultException $nre) {
            throw new EntityNotFoundException(static::$orderEntityName, $id);
        }
    }
public function findOrderEntityById($id)
    {
        try {
            return $this->em
                ->getRepository(static::$orderEntityName)
                ->find($id);
        } catch (NoResultException $nre) {
            throw new EntityNotFoundException(static::$orderEntityName, $id);
        }
    }
public function findOrderEntityById ( $ id ) { try { return $ this -> em -> getRepository ( static :: $ orderEntityName ) -> find ( $ id ) ; } catch ( NoResultException $ nre ) { throw new EntityNotFoundException ( static :: $ orderEntityName , $ id ) ; } }
Find order entity by id

@param $id

@throws \Sulu\Component\Rest\Exception\EntityNotFoundException

@return OrderInterface
Find order entity by id