andre 4 месяцев назад
Родитель
Сommit
765c8493a9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      v2/repository/AbstractRepository.php

+ 1 - 1
v2/repository/AbstractRepository.php

@@ -67,6 +67,6 @@ Abstract class AbstractRepository
 
     public function count()
     {
-        return count($this->fetch());
+        return count((array)$this->fetch());
     }
 }