protected function _scopeQuery(Query $query, $bundle = null)
    {
        $this->_initScopes();
        foreach ($this->_queryScopes as $scope) {
            if ($scope instanceof QueryScopeInterface) {
                $query = $scope->scope($query, $bundle);
            }
        }

        return $query;
    }
protected function _scopeQuery(Query $query, $bundle = null)
    {
        $this->_initScopes();
        foreach ($this->_queryScopes as $scope) {
            if ($scope instanceof QueryScopeInterface) {
                $query = $scope->scope($query, $bundle);
            }
        }

        return $query;
    }
protected function _scopeQuery ( Query $ query , $ bundle = null ) { $ this -> _initScopes ( ) ; foreach ( $ this -> _queryScopes as $ scope ) { if ( $ scope instanceof QueryScopeInterface ) { $ query = $ scope -> scope ( $ query , $ bundle ) ; } } return $ query ; }
Look for virtual columns in some query's clauses.

@param \Cake\ORM\Query $query The query to scope
@param string|null $bundle Consider attributes only for a specific bundle
@return \Cake\ORM\Query The modified query object
Look for virtual columns in some query s clauses .