public function getByCriteria($criteria, $fieldName)
    {
        /** @var Statement $statement */
        $queryBuilder = $this->getSelectQueryBuilder();
        $queryBuilder->where($fieldName . " = :criteria");
        $queryBuilder->setParameter('criteria', $criteria);

        $statement = $queryBuilder->execute();
        $rows      = $statement->fetchAll();
        $this->prepareResults($rows);
        return $rows;
    }
public function getByCriteria($criteria, $fieldName)
    {
        /** @var Statement $statement */
        $queryBuilder = $this->getSelectQueryBuilder();
        $queryBuilder->where($fieldName . " = :criteria");
        $queryBuilder->setParameter('criteria', $criteria);

        $statement = $queryBuilder->execute();
        $rows      = $statement->fetchAll();
        $this->prepareResults($rows);
        return $rows;
    }
public function getByCriteria ( $ criteria , $ fieldName ) { /** @var Statement $statement */ $ queryBuilder = $ this -> getSelectQueryBuilder ( ) ; $ queryBuilder -> where ( $ fieldName . " = :criteria" ) ; $ queryBuilder -> setParameter ( 'criteria' , $ criteria ) ; $ statement = $ queryBuilder -> execute ( ) ; $ rows = $ statement -> fetchAll ( ) ; $ this -> prepareResults ( $ rows ) ; return $ rows ; }
List objects by criteria

@param $criteria
@param $fieldName
@return \Mapbender\DataSourceBundle\Entity\DataItem[]
List objects by criteria