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 473c1a4 + 99a0a12 commit 59b6744Copy full SHA for 59b6744
components/uid.rst
@@ -273,6 +273,7 @@ of the UUID parameters::
273
// src/Repository/ProductRepository.php
274
275
// ...
276
+ use Doctrine\DBAL\ParameterType;
277
use Symfony\Bridge\Doctrine\Types\UuidType;
278
279
class ProductRepository extends ServiceEntityRepository
@@ -288,7 +289,7 @@ of the UUID parameters::
288
289
290
// alternatively, you can convert it to a value compatible with
291
// the type inferred by Doctrine
- ->setParameter('user', $user->getUuid()->toBinary())
292
+ ->setParameter('user', $user->getUuid()->toBinary(), ParameterType::BINARY)
293
;
294
295
0 commit comments