Skip to content

Commit f5a4709

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: [Uid] Remove an unneeded comment PostgreSQL setparameter() compatibility
2 parents 6a52a34 + 59b6744 commit f5a4709

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/uid.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ of the UUID parameters::
298298
// src/Repository/ProductRepository.php
299299

300300
// ...
301+
use Doctrine\DBAL\ParameterType;
301302
use Symfony\Bridge\Doctrine\Types\UuidType;
302303

303304
class ProductRepository extends ServiceEntityRepository
@@ -313,7 +314,7 @@ of the UUID parameters::
313314

314315
// alternatively, you can convert it to a value compatible with
315316
// the type inferred by Doctrine
316-
->setParameter('user', $user->getUuid()->toBinary())
317+
->setParameter('user', $user->getUuid()->toBinary(), ParameterType::BINARY)
317318
;
318319

319320
// ...

0 commit comments

Comments
 (0)