1
0
Fork 0
mirror of synced 2025-04-01 12:26:11 +03:00

Can cache many to many empty relations

This commit is contained in:
Asmir Mustafic 2014-02-11 15:08:49 +01:00
parent 1c94c16234
commit a5fbb20fbb

View file

@ -508,7 +508,7 @@ abstract class AbstractEntityPersister implements CachedEntityPersister
$list = $this->persister->loadManyToManyCollection($assoc, $sourceEntity, $coll);
if ($hasCache && ! empty($list)) {
if ($hasCache) {
$persister->storeCollectionCache($key, $list);
if ($this->cacheLogger) {