Tested with Drupal 8.8.1, batch synchronization does not work and triggers a LogicException.
The error message is :
"LogicException : The database connection is not serializable. This probably means you are serializing an object that has an indirect reference to the database connection. Adjust your code so that is not necessary. Alternatively, look at DependencySerializationTrait as a temporary solution."
I have added a patch to fix this.
Due to the use the dependency injection container, we need to use DependencySerializationTrait in addition of StringTranslationTrait
| Comment | File | Size | Author |
|---|---|---|---|
| fix-logicException-database-is-not-serializable.patch | 593 bytes | gval |
Comments
Comment #2
gval commentedComment #3
gval commentedComment #5
sadashiv commentedThanks for the patch, have pushed this to the branch.
Thanks,
Sadashiv