Skip to content

Commit

Permalink
Discriminator value could be an integer (TypeError is raised)
Browse files Browse the repository at this point in the history
  • Loading branch information
prohalexey committed Apr 25, 2024
1 parent f79d166 commit be803ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Query/SqlWalker.php
Expand Up @@ -384,7 +384,7 @@ private function generateDiscriminatorColumnConditionSQL(array $dqlAliases): str
$values = [];

if ($class->discriminatorValue !== null) { // discriminators can be 0
$values[] = $conn->quote($class->discriminatorValue);
$values[] = $conn->quote((string) $class->discriminatorValue);
}

foreach ($class->subClasses as $subclassName) {
Expand Down

0 comments on commit be803ad

Please sign in to comment.