src/Component/Frontend/StructureModal/StructureModal.php
protected function getRecipeSlug() : ?RecipeSlug
    {
        if (!$this->recipeSlug && $this->recipeSlugString)
        {
            $this->recipeSlug = $this->recipeSlugRepository->findOneBySlug($this->recipeSlugString);
        }

        return $this->recipeSlug;
    }
protected function getRecipeSlug() : ?RecipeSlug
    {
        if (!$this->recipeSlug && $this->recipeSlugString)
        {
            $this->recipeSlug = $this->recipeSlugRepository->findOneBySlug($this->recipeSlugString);
        }

        return $this->recipeSlug;
    }
Optimalizace SQL
@return RecipeSlug|NULL