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
I have a Symfony 6.4 application and have an issue with enqueue.
My Symfony Database is a MSSQL Server.
I have installed the enqueue modules with composer. This worked fine. The table enqueue got created.
When I now try to save a command to the Queue, I get an error:
$cmd = new RunCommand('debug:container', ['--tag=form.type']);
$producer->sendCommand(Commands::RUN_COMMAND, $cmd);
Error:
[Doctrine\DBAL\Exception\DriverException (-16)]
An exception occurred while executing a query: SQLSTATE [IMSSP, -16]: An invalid PHP type for parameter 1 was specified
I have a Symfony 6.4 application and have an issue with enqueue.
My Symfony Database is a MSSQL Server.
I have installed the enqueue modules with composer. This worked fine. The table enqueue got created.
When I now try to save a command to the Queue, I get an error:
Error:
While debugging I found out that parameter 1 of the error is the
id
field of the database.The Id is set at L69 https://github.com/php-enqueue/dbal/blob/2375961434e2a69b8710875f1c4e56f01b348a47/DbalProducer.php#L69 with Uuid:uuid4() function.
'id' => Uuid::uuid4(),
It returns an object for
id
:When I change now L69 to
'id' => \Enqueue\Util\UUID::generate()
, it returns the Uuid String and saving to database works.There seems to be an issue to convert the Object to an Uuid string somewhere later or it is only MSSQL related.
Can you please check, if you can reproduce this issue?
Does anyone know a solution for this problem?
The text was updated successfully, but these errors were encountered: