Neos\Flow\Persistence\Generic\Query::execute PHP Метод

execute() публичный Метод

Executes the query and returns the result
public execute ( boolean $cacheResult = false ) : Neos\Flow\Persistence\QueryResultInterface
$cacheResult boolean If the result cache should be used
Результат Neos\Flow\Persistence\QueryResultInterface The query result
    public function execute($cacheResult = false)
    {
        return new QueryResult($this, $cacheResult);
    }

Usage Example

 /**
  * @test
  */
 public function executeReturnsQueryResultInstance()
 {
     $result = $this->query->execute();
     $this->assertInstanceOf(Persistence\Generic\QueryResult::class, $result);
 }