EntityManager has been split into 11 classes (more info). So now EntityManager and EntityManagerInterface are deprecated.

Comments

Pavan B S created an issue. See original summary.

Pavan B S’s picture

Assigned: Pavan B S » Unassigned
Status: Active » Needs review
StatusFileSize
new1.53 KB

Applying the patch, please review.

laravz’s picture

Status: Needs review » Needs work

Hi,

Although the patch was applied successfully I found a minor error in the type hinting. The parameter name in the php doc block has not been changed to $entity_type_manager, while the parameter itself has.

@param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager

should become

@param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
Pavan B S’s picture

@laravz, thanks for the input , I will be working on it.

Pavan B S’s picture

StatusFileSize
new1.57 KB
new543 bytes

Reapplying the patch, please review.

Pavan B S’s picture

Status: Needs work » Needs review
laravz’s picture

Status: Needs review » Reviewed & tested by the community

The patch was applied successfully to both the dev branch and my project branch. Doc block parameter name is now OK, no further issues were found.

dhruveshdtripathi’s picture

Thanks @Pavan B S and @LaravZ for patch and review

dhruveshdtripathi’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

sanduhrs’s picture

Attached is a patch to revert this commit for the time being.

berdir’s picture

Status: Closed (fixed) » Postponed

Committed the revert, this is postponed on core (aka me, I suppose) figuring out what to do about that.

berdir’s picture

Status: Postponed » Needs review
berdir’s picture

StatusFileSize
new1.6 KB

Here's a new patch that uses the new pattern to call parent::static() and then assign the property, this avoids having to pas the correct service to the parent, which now actually is a entity repository, not entity type manager.

berdir’s picture

Status: Needs review » Fixed

  • Berdir committed c8c7b5d on 8.x-1.x
    Issue #2869271 by Pavan B S, Berdir, sanduhrs, dhruveshdtripathi, LaravZ...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.