EsdNotFoundException example

$result = $query->execute()->fetch();

        if (empty($result)) {
            $query = $this->getFallbackQuery()
                ->setParameter('customerId', $customerId)
                ->setParameter('esdId', $esdId);

            $result = $query->execute()->fetch();
        }

        if (empty($result)) {
            throw new EsdNotFoundException();
        }

        return $this->esdHydrator->hydrate($result);
    }

    protected function getDefaultQuery(): QueryBuilder
    {
        return $this->connection->createQueryBuilder()
            ->addSelect($this->fieldHelper->getEsdFields())
            ->from('s_articles_esd', 'esd')
            ->innerJoin('esd', 's_order_esd', 'orderEsd', 'esd.id = orderEsd.esdID')
            
Home | Imprint | This part of the site doesn't use cookies.