expandCriteriaParameters example

$hydrator->hydrateAll($stmt$this->currentPersisterContext->rsm, [Query::HINT_REFRESH => true]);
    }

    /** * {@inheritDoc} */
    public function count($criteria = [])
    {
        $sql = $this->getCountSQL($criteria);

        [$params$types] = $criteria instanceof Criteria
            ? $this->expandCriteriaParameters($criteria)
            : $this->expandParameters($criteria);

        return (int) $this->conn->executeQuery($sql$params$types)->fetchOne();
    }

    /** * {@inheritDoc} */
    public function loadCriteria(Criteria $criteria)
    {
        $orderBy = $criteria->getOrderings();
        
Home | Imprint | This part of the site doesn't use cookies.