protected function query(Select $sql)
    {
        $cid = $this->getId($sql);
        $collection = $this->repository
            ->getCollectionsMap()
            ->get($cid, false);

        if (false === $collection) {
            $collection = $this->getCollection($sql, $cid);
        }

        return $collection;
    }
protected function query(Select $sql)
    {
        $cid = $this->getId($sql);
        $collection = $this->repository
            ->getCollectionsMap()
            ->get($cid, false);

        if (false === $collection) {
            $collection = $this->getCollection($sql, $cid);
        }

        return $collection;
    }
protected function query ( Select $ sql ) { $ cid = $ this -> getId ( $ sql ) ; $ collection = $ this -> repository -> getCollectionsMap ( ) -> get ( $ cid , false ) ; if ( false === $ collection ) { $ collection = $ this -> getCollection ( $ sql , $ cid ) ; } return $ collection ; }
Execute provided query

@param Select $sql

@return EntityCollectionInterface
Execute provided query