Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Oct 12, 2024
1 parent c19afa1 commit c7e5605
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/Query/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Exception\DuplicateFieldException;
use Doctrine\ORM\Exception\NoMatchingPropertyException;
use Doctrine\ORM\Internal\Hydration\HydrationException;
use Doctrine\ORM\Mapping\AssociationMapping;
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\Query;
Expand Down
9 changes: 0 additions & 9 deletions tests/Tests/ORM/UnitOfWorkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -691,15 +691,6 @@ public function rollBack(): void
self::assertSame('Commit failed', $e->getPrevious()->getMessage());
}
}

public function testItThrowsWhenCreateEntityWithSqlWalkerPartialQueryHint(): void
{
$this->expectException(HydrationException::class);
$this->expectExceptionMessage('Hydration of entity objects is not allowed when DQL PARTIAL keyword is used.');

$hints = [SqlWalker::HINT_PARTIAL => true];
$this->_unitOfWork->createEntity(VersionedAssignedIdentifierEntity::class, ['id' => 1], $hints);
}
}


Expand Down

0 comments on commit c7e5605

Please sign in to comment.