DDC-546 - Bugfix for PersistentCollection::count() in EXTRA LAZY special case.
This commit is contained in:
parent
3acc05d953
commit
cbfdf61976
@ -471,9 +471,9 @@ final class PersistentCollection implements Collection
|
||||
if (!isset($this->doctrineCollectionCount)) {
|
||||
$this->doctrineCollectionCount = $this->em->getUnitOfWork()
|
||||
->getCollectionPersister($this->association)
|
||||
->count($this) + $this->coll->count();
|
||||
->count($this);
|
||||
}
|
||||
return $this->doctrineCollectionCount;
|
||||
return $this->doctrineCollectionCount + $this->coll->count();
|
||||
}
|
||||
|
||||
$this->initialize();
|
||||
|
Loading…
x
Reference in New Issue
Block a user