Skip to content

Commit 291eb3b

Browse files
authored
Readme: adjust error message to reality
1 parent 580dbf1 commit 291eb3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Doctrine Query Tree Walker that perform additional checks on the query AST in ad
55
Currently it checks that the types of the parameters passed to the query are correct. For example the following will result in exception:
66

77
```php
8-
// throws 'Parameter "created_at" is of type "string", but expected "datetime" (because it\'s used in expression with u.createdAt)'
8+
// throws: Parameter 'created_at' has no type specified in 3rd argument of setParameter(). Thus it is inferred as 'string', but it is compared with 'u.createdA' which can only be compared with 'datetime_immutable'.
99
$this->entityManager->createQueryBuilder()
1010
->select('u')
1111
->from(User::class, 'u')

0 commit comments

Comments
 (0)