Skip to content

Commit 59b6744

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [Uid] Remove an unneeded comment PostgreSQL setparameter() compatibility
2 parents 473c1a4 + 99a0a12 commit 59b6744

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
@@ -273,6 +273,7 @@ of the UUID parameters::
273273
// src/Repository/ProductRepository.php
274274

275275
// ...
276+
use Doctrine\DBAL\ParameterType;
276277
use Symfony\Bridge\Doctrine\Types\UuidType;
277278

278279
class ProductRepository extends ServiceEntityRepository
@@ -288,7 +289,7 @@ of the UUID parameters::
288289

289290
// alternatively, you can convert it to a value compatible with
290291
// the type inferred by Doctrine
291-
->setParameter('user', $user->getUuid()->toBinary())
292+
->setParameter('user', $user->getUuid()->toBinary(), ParameterType::BINARY)
292293
;
293294

294295
// ...

0 commit comments

Comments
 (0)