src/Sulu/Bundle/Sales/CoreBundle/Item/ItemManager.php
public function findByIdAndLocale($id, $locale)
    {
        $item = $this->itemRepository->findByIdAndLocale($id, $locale);

        if ($item) {
            return $this->itemFactory->createApiEntity($item, $locale);
        } else {
            return null;
        }
    }
public function findByIdAndLocale($id, $locale)
    {
        $item = $this->itemRepository->findByIdAndLocale($id, $locale);

        if ($item) {
            return $this->itemFactory->createApiEntity($item, $locale);
        } else {
            return null;
        }
    }
public function findByIdAndLocale ( $ id , $ locale ) { $ item = $ this -> itemRepository -> findByIdAndLocale ( $ id , $ locale ) ; if ( $ item ) { return $ this -> itemFactory -> createApiEntity ( $ item , $ locale ) ; } else { return null ; } }
Finds an item by id and locale

@param int $id
@param string $locale

@return null|ApiItemInterface
Finds an item by id and locale