We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6a52a34 + 59b6744 commit f5a4709Copy full SHA for f5a4709
components/uid.rst
@@ -298,6 +298,7 @@ of the UUID parameters::
298
// src/Repository/ProductRepository.php
299
300
// ...
301
+ use Doctrine\DBAL\ParameterType;
302
use Symfony\Bridge\Doctrine\Types\UuidType;
303
304
class ProductRepository extends ServiceEntityRepository
@@ -313,7 +314,7 @@ of the UUID parameters::
313
314
315
// alternatively, you can convert it to a value compatible with
316
// the type inferred by Doctrine
- ->setParameter('user', $user->getUuid()->toBinary())
317
+ ->setParameter('user', $user->getUuid()->toBinary(), ParameterType::BINARY)
318
;
319
320
0 commit comments