private function getProductUnits($locale)
    {
        /** @var Unit[] $productUnits */
        $productUnits = $this->get('sulu_product.unit_repository')->findAllByLocale($locale);

        $result = [];

        foreach ($productUnits as $productUnit) {
            $result[] = [
                'id' => $productUnit->getId(),
                'name' => $productUnit->getTranslation($locale)->getName(),
            ];
        }

        return $result;
    }