Caching 在实体上没有@cache的情况下,条令二级缓存出现致命错误

Caching 在实体上没有@cache的情况下,条令二级缓存出现致命错误,caching,doctrine-orm,doctrine,second-level-cache,Caching,Doctrine Orm,Doctrine,Second Level Cache,我有一种奇怪的行为。 课程: 当我执行以下操作时,条令会导致致命错误: $userinf->getExtra(); 致命错误:在第137行的/lib/Doctrine/ORM/Cache/DefaultEntityHydrator.php中调用未定义的方法Doctrine\ORM\Persisters\basicintypersister::getCacheRegion() 这是因为$assocPersister是BasicEntityPersister的实例 这是一个条令错误,或者我必

我有一种奇怪的行为。 课程:

当我执行以下操作时,条令会导致致命错误:

$userinf->getExtra();
致命错误:在第137行的/lib/Doctrine/ORM/Cache/DefaultEntityHydrator.php中调用未定义的方法Doctrine\ORM\Persisters\basicintypersister::getCacheRegion() 这是因为
$assocPersister
是BasicEntityPersister的实例

这是一个条令错误,或者我必须在所有实体上指定
@Cache

它在这里被修复。 因此,问题不再存在

$userinf->getExtra();