addCustomHints example


    public function getQuery()
    {
        /** @var Query<ModelEntity> $query */
        $query = parent::getQuery();

        $em = $this->getEntityManager();

        if ($em->isDebugModeEnabled() && $this->getType() === self::SELECT) {
            $em->addCustomHints($query, null, false, true);
        }

        return $query;
    }

    public function getEntityManager(): ModelManager
    {
        return parent::getEntityManager();
    }
}
Home | Imprint | This part of the site doesn't use cookies.