1
0
mirror of synced 2025-02-21 22:53:15 +03:00

Update LazyCriteriaCollection.php

Fixed issue where count = 0
This commit is contained in:
Guilherme Blanco 2014-05-16 14:03:20 -04:00
parent 8babb77d37
commit d6c727dcc1

View File

@ -75,7 +75,7 @@ class LazyCriteriaCollection extends AbstractLazyCollection implements Selectabl
} }
// Return cached result in case count query was already executed // Return cached result in case count query was already executed
if ($this->count) { if ($this->count !== null) {
return $this->count; return $this->count;
} }