Skip to content

Commit

Permalink
fix: replace doctrine deprecated methods fetchColum by fetchOne
Browse files Browse the repository at this point in the history
  • Loading branch information
smarcet committed Aug 6, 2024
1 parent 797b325 commit c8de78a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/Repositories/Summit/DoctrineSpeakerRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ public function getAllByPage(PagingInfo $paging_info, Filter $filter = null, Ord

$stm = $this->getEntityManager()->getConnection()->executeQuery($query_count, $bindings);

$total = intval($stm->fetchColumn(0));
$total = intval($stm->fetchOne());

$bindings = array_merge($bindings, array
(
Expand Down Expand Up @@ -1274,7 +1274,7 @@ public function getFeaturedSpeakers(Summit $summit, PagingInfo $paging_info, Fil

$stm = $this->getEntityManager()->getConnection()->executeQuery($query_count, $bindings);

$total = intval($stm->fetchColumn(0));
$total = intval($stm->fetchOne());

$bindings = array_merge($bindings, array
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ public function getMaxOrder(): int
SQL;
$stm = $this->getEntityManager()->getConnection()->executeQuery($sql);

return intval($stm->fetchColumn(0));
return intval($stm->fetchOne());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function getLastEntityEventId(Summit $summit)
SELECT ID FROM SummitEntityEvent WHERE SummitID = {$summit->getId()} ORDER BY ID DESC LIMIT 1;
SQL;

return intval($this->getEntityManager()->getConnection()->executeQuery($query)->fetchColumn(0));
return intval($this->getEntityManager()->getConnection()->executeQuery($query)->fetchOne());
}

/**
Expand Down

0 comments on commit c8de78a

Please sign in to comment.