Skip to content

Commit

Permalink
Merge branch '6.4' into 7.0
Browse files Browse the repository at this point in the history
* 6.4:
  [Uid] Remove an unneeded comment
  PostgreSQL setparameter() compatibility
  • Loading branch information
javiereguiluz committed Mar 5, 2024
2 parents 473c1a4 + 99a0a12 commit 59b6744
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/uid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ of the UUID parameters::
// src/Repository/ProductRepository.php

// ...
use Doctrine\DBAL\ParameterType;
use Symfony\Bridge\Doctrine\Types\UuidType;

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

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

// ...
Expand Down

0 comments on commit 59b6744

Please sign in to comment.