public function mapCriteriaToSelect(ICriteria $criteria, array &$memberMappings = null, array $extraRequiredMembers = []) : Select
    {
        InvalidArgumentException::verifyAllInstanceOf(__METHOD__, 'extraRequiredMembers', $extraRequiredMembers, NestedMember::class);
        $criteria->verifyOfClass($this->getMappedObjectType()->getClassName());

        $select = $this->mapper->getRawSelect();

        return $this->mapCriteriaToExistingSelect($criteria, $select, $select->getTableAlias(), $memberMappings, $extraRequiredMembers);
    }
public function mapCriteriaToSelect(ICriteria $criteria, array &$memberMappings = null, array $extraRequiredMembers = []) : Select
    {
        InvalidArgumentException::verifyAllInstanceOf(__METHOD__, 'extraRequiredMembers', $extraRequiredMembers, NestedMember::class);
        $criteria->verifyOfClass($this->getMappedObjectType()->getClassName());

        $select = $this->mapper->getRawSelect();

        return $this->mapCriteriaToExistingSelect($criteria, $select, $select->getTableAlias(), $memberMappings, $extraRequiredMembers);
    }
public function mapCriteriaToSelect ( ICriteria $ criteria , array & $ memberMappings = null , array $ extraRequiredMembers = [ ] ) : Select { InvalidArgumentException :: verifyAllInstanceOf ( __METHOD__ , 'extraRequiredMembers' , $ extraRequiredMembers , NestedMember :: class ) ; $ criteria -> verifyOfClass ( $ this -> getMappedObjectType ( ) -> getClassName ( ) ) ; $ select = $ this -> mapper -> getRawSelect ( ) ; return $ this -> mapCriteriaToExistingSelect ( $ criteria , $ select , $ select -> getTableAlias ( ) , $ memberMappings , $ extraRequiredMembers ) ; }
Maps the supplied criteria to a select query for the entity.

@param ICriteria                       $criteria
@param MemberMappingWithTableAliases[] &$memberMappings
@param NestedMember[]                  $extraRequiredMembers

@return Select
@throws InvalidArgumentException
Maps the supplied criteria to a select query for the entity .