-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug(bridge): Doctrine::update() #45
Comments
Hi @jvancoillie 👋🏻 Hum, strange behaviour here 🤔 This method is tested on SQLite and seems to work, do you have more informations about the stack used? Maybe the SGBDR driver and so on? Thanks and sorry for the issue 🙂 |
no problem, I discover the bundle and try to understand how it works so that I can use it on a current project. It is possible that the problem does not come from the bundle but from the use that I make of it. Currently I am on version 5.2.6 of symfony with php 7.4.15 and a mariadb in version 10.5.8 (docker mariadb:10.5.8) with the following overrided configuration:
|
Hum, ok, I got a better understanding of the problem, it seems that when executing SQLite queries, the driver returns an empty string for this method, this way, we cannot grab the error, not to mention that you're right about the usage of it ONLY in I've opened a PR to fix the issue, should be out soon in |
I tested without the writeLockSQL and when updating the task it does not detect any change which throws the exception "The given task cannot be updated as the identifier or the body is invalid" and rollback because the rowCount ( ) equal to 0.
sorry for the inconvenience i really must do something wrong |
Do you have the whole process that lead to this error? 🤔 It is during a specific command? |
is it because of the "single_run" parameter i see it removes the entry and then tries to do an update |
Oh, that's what I call a great issue 😄 Ok, got it, by default and if Looks like a "human-related" bug on my side 😄 |
Must understand that the single_run parameter, will only execute the command once ? In any case this is the behavior I expect, I want to play the "app:activation" command when setting up the cron Désolé pour mon anglais médiocre ;) |
Aucun souci pour l'anglais, le mien n'est pas meilleur (et je ne parle pas de l'accent made in "Chud de la France" 😄 ). The Could be interesting to think about it for next releases 🙂 |
Great, what is a shame is that I will no longer have information on the single_run command. Currently, when I list the scheduler I find my activation command (certainly because of the bug). After the correction, I should not have any more information about this task, is that right?it could have been interesting to be able to consult the execution time of this command and to keep track of the last execution |
Hum, in fact, the behaviour can be changed / improved, I'm thinking about the fact that a |
Small update, the fix has been merged, as the core API has been changed ( |
@Guikingone thanks |
Hi,
Task update fails due to lock mode (getWriteLockSQL()) which I think is only available on a SQL SELECT command.
that throws the following exception
The text was updated successfully, but these errors were encountered: