Skip to content

Commit

Permalink
Fix doctrine ORM 3.0+ compatibility (#467)
Browse files Browse the repository at this point in the history
Co-authored-by: Gunther Konig <[email protected]>
  • Loading branch information
geecu and Gunther Konig authored Jan 31, 2025
1 parent 94de608 commit b51202a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Entity/TransUnitRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function getTransUnitList(array $locales = null, $rows = 20, $page = 1, a
*
* @return int
*/
public function count(array $locales = null, array $filters = null)
public function count(array $locales = null, array $filters = null): int
{
$this->loadCustomHydrator();

Expand Down
4 changes: 3 additions & 1 deletion Util/Doctrine/SingleColumnArrayHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ protected function hydrateAllData()
{
$result = [];

while ($data = $this->_stmt->fetchNumeric()) {
$stmt = $this->_stmt ?? $this->stmt;

while ($data = $stmt->fetchNumeric()) {
$value = $data[0];

if (is_numeric($value)) {
Expand Down

0 comments on commit b51202a

Please sign in to comment.