We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18be6d2 commit 5283e14Copy full SHA for 5283e14
docs/en/reference/query-builder.rst
@@ -268,7 +268,7 @@ Doctrine\DBAL\ParameterType::* or a DBAL Type name for conversion.
268
use Doctrine\DBAL\Types\Types;
269
270
// prevents attempt to load metadata for date time class, improving performance
271
- $qb->setParameter('date', new \DateTimeImmutable(), Types::DATE_IMMUTABLE)
+ $qb->setParameter('date', new \DateTimeImmutable(), Types::DATETIME_IMMUTABLE)
272
273
If you've got several parameters to bind to your query, you can
274
also use setParameters() instead of setParameter() with the
0 commit comments