Second level cache, undefined method getCacheRegion #5413

Closed
opened 2026-01-22 15:07:05 +01:00 by admin · 3 comments
Owner

Originally created by @kubawerlos on GitHub (Feb 7, 2017).

Originally assigned to: @Ocramius on GitHub.

With Symfony 3.2.3 and ORM 2.5.6 (or master), when I remove cache configuration from entity I am getting:

Attempted to call an undefined method named "getCacheRegion" of class
"Doctrine\ORM\Persisters\Entity\BasicEntityPersister".

because method getEntityPersister is returning Doctrine\ORM\Persisters\Entity\BasicEntityPersister istead of AbstractEntityPersister.

Originally created by @kubawerlos on GitHub (Feb 7, 2017). Originally assigned to: @Ocramius on GitHub. With Symfony 3.2.3 and ORM 2.5.6 (or master), when I remove cache configuration from entity I am getting: ``` Attempted to call an undefined method named "getCacheRegion" of class "Doctrine\ORM\Persisters\Entity\BasicEntityPersister". ``` because method [getEntityPersister](https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Cache/DefaultQueryCache.php#L110) is returning `Doctrine\ORM\Persisters\Entity\BasicEntityPersister` istead of `AbstractEntityPersister`.
admin added the BugDuplicate labels 2026-01-22 15:07:06 +01:00
admin closed this issue 2026-01-22 15:07:06 +01:00
Author
Owner

@Ocramius commented on GitHub (Feb 7, 2017):

@kubawerlos can you try current master? I think it was fixed there, but not backported due to complexity

@Ocramius commented on GitHub (Feb 7, 2017): @kubawerlos can you try current `master`? I think it was fixed there, but not backported due to complexity
Author
Owner

@lcobucci commented on GitHub (Feb 7, 2017):

I believe is a duplicate of #6124 and #5808

@lcobucci commented on GitHub (Feb 7, 2017): I believe is a duplicate of #6124 and #5808
Author
Owner

@Ocramius commented on GitHub (Feb 7, 2017):

Closing as duplicate of #6124

@Ocramius commented on GitHub (Feb 7, 2017): Closing as duplicate of #6124
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5413