You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Query\Parameter;
$builder->setParameters(new ArrayCollection([
new Parameter('techName', InvoiceRenderer::TYPE),
new Parameter('orderId', Uuid::fromHexToBytes($orderId))
]));
PHP Version
8.3.3
Shopware Version
6.6.0.0.RC.3
Expected behaviour
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Query\Parameter;
$builder->setParameters(new ArrayCollection([
new Parameter('techName', InvoiceRenderer::TYPE),
new Parameter('orderId', Uuid::fromHexToBytes($orderId))
]));
Actual behaviour
$builder->setParameters([
'techName' => InvoiceRenderer::TYPE,
'orderId' => Uuid::fromHexToBytes($orderId),
]);
How to reproduce
in
src/Core/Checkout/Document/Service/ReferenceInvoiceLoader.php and in others files where is ->setParameters(
this deprecated code will result in error in version 4.0
https://www.doctrine-project.org/projects/doctrine-orm/en/3.0/reference/query-builder.html
https://www.doctrine-project.org/projects/doctrine-orm/en/latest/reference/query-builder.html
The text was updated successfully, but these errors were encountered: