1
0
mirror of synced 2025-01-31 04:21:44 +03:00

DDC-546 - Bugfix for PersistentCollection::count() in EXTRA LAZY special case.

This commit is contained in:
Benjamin Eberlei 2011-01-02 13:41:18 +01:00
parent 3acc05d953
commit cbfdf61976

View File

@ -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();