DDC-546 - Bugfix for PersistentCollection::count() in EXTRA LAZY special case.
This commit is contained in:
parent
3acc05d953
commit
cbfdf61976
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue