mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Doctrine 'ORM\Cache' with inherited classes #7026
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @meiyasan on GitHub (Aug 18, 2022).
Hello,
I have two entities inheriting from one to each other named "Tag" and "Channel"
Channel extends from Tag, and I configured Channel to be cached using a NonStrictReadWriteCachedEntityPersister
@ORM\Cache(usage="NONSTRICT_READ_WRITE")At first I forgot to use "NONSTRICT_READ_WRITE" in Tag as well.
This resulted in an error message:
Attempted to call an undefined method named "getCacheRegion" of class "Doctrine\ORM\Persisters\Entity\JoinedSubclassPersister".I think this was just due to the fact that there is no interface for CachedEntityPersisters.
I am not a doctrine expert, but I don't think this is a huge issue to fix.
@meiyasan commented on GitHub (Aug 18, 2022):
Just an attempt to fix. This solved the ambiguity.
#10000 🤩