Can cache many to many empty relations
This commit is contained in:
parent
1c94c16234
commit
a5fbb20fbb
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue