Skip to content

Commit d651632

Browse files
janedbalJanTvrdik
andauthored
Readme: adjust error message to reality (#2)
* Readme: adjust error message to reality * typo Co-authored-by: Jan Tvrdík <[email protected]> --------- Co-authored-by: Jan Tvrdík <[email protected]>
1 parent 580dbf1 commit d651632

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.createdAt' 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)