private function checkIndexIsEligible()
    {
        $index = $this->getIndex();

        if ($index->isSecondaryGlobal() && !$index->hasAttributes($this->expr->getAttributes())) {
            throw ODMException::queryIndexProjectionIncompatible();
        }

        return (bool)$this->getKeyCondition();
    }
private function checkIndexIsEligible()
    {
        $index = $this->getIndex();

        if ($index->isSecondaryGlobal() && !$index->hasAttributes($this->expr->getAttributes())) {
            throw ODMException::queryIndexProjectionIncompatible();
        }

        return (bool)$this->getKeyCondition();
    }
private function checkIndexIsEligible ( ) { $ index = $ this -> getIndex ( ) ; if ( $ index -> isSecondaryGlobal ( ) && ! $ index -> hasAttributes ( $ this -> expr -> getAttributes ( ) ) ) { throw ODMException :: queryIndexProjectionIncompatible ( ) ; } return ( bool ) $ this -> getKeyCondition ( ) ; }
Indicates if the selected index is eligible for the assembled query.

@return bool

@throws ODMException
Indicates if the selected index is eligible for the assembled query .