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.
EntityManager has been split into 11 classes (more info). So now EntityManager and EntityManager are deprecated.
Comment | File | Size | Author |
---|---|---|---|
#7 | scheduler-replace_entitymanager-2867272-7.patch | 5.95 KB | idebr |
| |||
#7 | interdiff-6-7.txt | 1.05 KB | idebr |
Comments
Comment #2
Pavan B S CreditAttribution: Pavan B S at Valuebound commentedApplying the patch, please review.
Comment #4
Pavan B S CreditAttribution: Pavan B S at Valuebound commentedApplying the patch, please review.
Comment #6
idebr CreditAttribution: idebr at ezCompany commentedThis should fix the test failures and remove the remaining usages of the deprecated entity manager.
Comment #7
idebr CreditAttribution: idebr at ezCompany commentedThe dependency injection should cast its dependency as an interface. This fixes problems like #2708957: SchedulerManager throws exception on receiving EntityManagerWrapper from web profiler
Comment #8
idebr CreditAttribution: idebr at ezCompany commentedNote this patch has been included in #2867272: Replace all usages of deprecated EntityManager, so it might become outdated if the related issue is resolved.
Comment #9
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedThanks for the info. However, you pasted the wrong issue number. You have linked this issue with itself. (would be good if that could be a validation check on the submission form).
I think you meant to link to your work on #2868553: Fix the code to adhere to Drupal Best Practice instead.
Comment #10
idebr CreditAttribution: idebr at ezCompany commentedAh yes, that is the correct reference
Comment #11
idebr CreditAttribution: idebr at ezCompany commentedThe usages of the EntityManager have been replaced in #2868553: Fix the code to adhere to Drupal Best Practice and #3033783: Remove unused statements, use EntityTypeManager, fix annotations and other tidy-up