Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Replace deprecated usage of db_transaction
Comment | File | Size | Author |
---|---|---|---|
#9 | interdiff_5_9.txt | 6.59 KB | aleevas |
#9 | 3067795-9.patch | 5.89 KB | aleevas |
|
Comments
Comment #2
penyaskitoComment #3
aleevasAdded a quick patch
Comment #4
penyaskitoAlexey, thanks for looking at this!!!
Let's put @database as the last argument per backwards compatibility, and default to NULL.
If $connection is null, trigger an error and assign it from the container as we do with $entity_field_manager.
Comment #5
aleevasYou're welcome @penyaskito
Here is my next patch
Comment #6
aleevasI forgot to add patch itself :)
Comment #7
penyaskitoGreat!
That's referencing a wrong change record (applies for entity_manager, not for this deprecation).
Please link to https://www.drupal.org/node/2993033
Comment #8
penyaskitoComment #9
aleevasI hope that I'm finally did it :)
Comment #10
penyaskitoYou did!! Thanks a lot :-)
Comment #12
penyaskitoCommitted 73177fe and pushed to 8.x-2.x. Thanks, Alexey!