Skip to content

Commit b507b02

Browse files
committed
Throw exception is doctrine type is null or not registred
1 parent 0161214 commit b507b02

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Doctrine/Orm/Filter/AbstractUuidFilter.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ private function filterProperty(string $property, mixed $value, QueryBuilder $qu
117117
private function convertValuesToTheDatabaseRepresentationIfNecessary(QueryBuilder $queryBuilder, ?string $doctrineFieldType, array $values): array
118118
{
119119
if ($doctrineFieldType === null || !Type::hasType($doctrineFieldType)) {
120-
return $values;
120+
throw new \LogicException(sprintf(
121+
'The Doctrine type "%s" is not valid or not registered.',
122+
$doctrineFieldType
123+
));
121124
}
122125

123126
$doctrineType = Type::getType($doctrineFieldType);

0 commit comments

Comments
 (0)