Skip to content

Commit

Permalink
Merge pull request #848 from doctrine/1-to-2
Browse files Browse the repository at this point in the history
merge 1.x to 2.x
  • Loading branch information
dbu authored Sep 19, 2023
2 parents f0640a0 + 632d34f commit 5e0bc0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Doctrine/ODM/PHPCR/Query/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public function getResult(int $hydrationMode = self::HYDRATE_DOCUMENT)
*
* Alias for execute(null, HYDRATE_PHPCR).
*
* @return Collection|QueryResultInterface
* @return QueryResultInterface
*/
public function getPhpcrNodeResult()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public function testSelect(): void

$result = $qb->getQuery()->getPhpcrNodeResult();
$rows = $result->getRows();
$values = $rows->current()->getValues('a');
$values = $rows->current()->getValues();
$values = $this->cleanValues($values);
$this->assertInstanceOf(\Countable::class, $rows);
$this->assertCount(1, $rows);
Expand All @@ -305,7 +305,7 @@ public function testSelect(): void

$result = $qb->getQuery()->getPhpcrNodeResult();
$rows = $result->getRows();
$values = $rows->current()->getValues('a');
$values = $rows->current()->getValues();
$values = $this->cleanValues($values);

switch ($qb->getQuery()->getLanguage()) {
Expand Down

0 comments on commit 5e0bc0c

Please sign in to comment.