src/Component/Frontend/StructureModal/StructureModal.php
protected function getStructure() : ?Structure
    {
        if (!$this->structure && $this->structureId)
        {
            $this->structure = $this->structureRepository->findOneById($this->structureId);
        }

        return $this->structure;
    }
protected function getStructure() : ?Structure
    {
        if (!$this->structure && $this->structureId)
        {
            $this->structure = $this->structureRepository->findOneById($this->structureId);
        }

        return $this->structure;
    }
Optimalizace SQL
@return Structure|NULL