Skip to content

Commit da301bf

Browse files
committed
Fix to force count use the alias of read to trigger beforeRead
1 parent 68b2f84 commit da301bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ final public function count(Record $record): int
314314
$count = $this
315315
->fields($fields)
316316
->limit(null)
317-
->read($record, $alias, false)
317+
->read($record, null, false)
318318
->current();
319319

320320
$this->reset();

0 commit comments

Comments
 (0)