protected function loadData($deliveryExecutionId)
    {
        $qb = $this->getPersistence()->getPlatForm()->getQueryBuilder();
        $qb->select('*')
            ->from(self::TABLE_NAME)
            ->where(self::DELIVERY_EXECUTION_ID.'= :deid')
            ->setParameter('deid', $deliveryExecutionId);
        $data = $qb->execute()->fetch(\PDO::FETCH_ASSOC);
        $kvData = $this->getKvData([$deliveryExecutionId]);
        if (isset($kvData[$deliveryExecutionId])) {
            $data =  array_merge($data, $kvData[$deliveryExecutionId]);
        }
        return $data;
    }
protected function loadData($deliveryExecutionId)
    {
        $qb = $this->getPersistence()->getPlatForm()->getQueryBuilder();
        $qb->select('*')
            ->from(self::TABLE_NAME)
            ->where(self::DELIVERY_EXECUTION_ID.'= :deid')
            ->setParameter('deid', $deliveryExecutionId);
        $data = $qb->execute()->fetch(\PDO::FETCH_ASSOC);
        $kvData = $this->getKvData([$deliveryExecutionId]);
        if (isset($kvData[$deliveryExecutionId])) {
            $data =  array_merge($data, $kvData[$deliveryExecutionId]);
        }
        return $data;
    }
protected function loadData ( $ deliveryExecutionId ) { $ qb = $ this -> getPersistence ( ) -> getPlatForm ( ) -> getQueryBuilder ( ) ; $ qb -> select ( '*' ) -> from ( self :: TABLE_NAME ) -> where ( self :: DELIVERY_EXECUTION_ID . '= :deid' ) -> setParameter ( 'deid' , $ deliveryExecutionId ) ; $ data = $ qb -> execute ( ) -> fetch ( \ PDO :: FETCH_ASSOC ) ; $ kvData = $ this -> getKvData ( [ $ deliveryExecutionId ] ) ; if ( isset ( $ kvData [ $ deliveryExecutionId ] ) ) { $ data = array_merge ( $ data , $ kvData [ $ deliveryExecutionId ] ) ; } return $ data ; }
Load data instead of searching
Returns false on failure
@param string $deliveryExecutionId
@return array
Load data instead of searching Returns false on failure