Jackalope\Query\Query::execute PHP Method

execute() public method

{@inheritDoc}
public execute ( )
    public function execute()
    {
        if (null === $this->objectManager) {
            // if the ObjectManager was not injected in the header. this is only supposed to happen in the DBAL client.
            throw new RepositoryException('Jackalope implementation error: This query was built for parsing only. (There is no ObjectManager to run the query against.)');
        }
        $transport = $this->objectManager->getTransport();
        $rawData = $transport->query($this);
        $queryResult = $this->factory->get('Query\\QueryResult', array($rawData, $this->objectManager));
        return $queryResult;
    }