src/Sulu/Bundle/Sales/OrderBundle/Order/OrderManager.php
public function findOrderEntityForItemWithId($id, $returnMultipleResults = false)
    {
        try {
            return $this->em
                ->getRepository(static::$orderEntityName)
                ->findOrderForItemWithId($id, $returnMultipleResults);
        } catch (NoResultException $nre) {
            throw new EntityNotFoundException(static::$itemEntity, $id);
        }
    }
public function findOrderEntityForItemWithId($id, $returnMultipleResults = false)
    {
        try {
            return $this->em
                ->getRepository(static::$orderEntityName)
                ->findOrderForItemWithId($id, $returnMultipleResults);
        } catch (NoResultException $nre) {
            throw new EntityNotFoundException(static::$itemEntity, $id);
        }
    }
public function findOrderEntityForItemWithId ( $ id , $ returnMultipleResults = false ) { try { return $ this -> em -> getRepository ( static :: $ orderEntityName ) -> findOrderForItemWithId ( $ id , $ returnMultipleResults ) ; } catch ( NoResultException $ nre ) { throw new EntityNotFoundException ( static :: $ itemEntity , $ id ) ; } }
Find order for item with id

@param int $id

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

@return OrderInterface
Find order for item with id