Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DBAL 2.12 compatibility break #68

Merged
merged 1 commit into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Repository/JobRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function findOneshotDataflows(): iterable
$qb
->andWhere($qb->expr()->isNull('scheduled_dataflow_id'))
->andWhere($qb->expr()->eq('status', $qb->createNamedParameter(Job::STATUS_PENDING, ParameterType::INTEGER)));
$stmt = $qb->executeQuery();
$stmt = $qb->execute();
if (0 === $stmt->rowCount()) {
return [];
}
Expand Down Expand Up @@ -106,7 +106,7 @@ public function findLatests(): iterable
$qb
->orderBy('requested_date', 'DESC')
->setMaxResults(20);
$stmt = $qb->executeQuery();
$stmt = $qb->execute();
if (0 === $stmt->rowCount()) {
return [];
}
Expand All @@ -121,7 +121,7 @@ public function findForScheduled(int $id): iterable
$qb->andWhere($qb->expr()->eq('scheduled_dataflow_id', $qb->createNamedParameter($id, ParameterType::INTEGER)))
->orderBy('requested_date', 'DESC')
->setMaxResults(20);
$stmt = $qb->executeQuery();
$stmt = $qb->execute();
if (0 === $stmt->rowCount()) {
return [];
}
Expand Down Expand Up @@ -162,7 +162,7 @@ public function createQueryBuilder($alias = null): QueryBuilder

private function returnFirstOrNull(QueryBuilder $qb): ?Job
{
$stmt = $qb->executeQuery();
$stmt = $qb->execute();
if (0 === $stmt->rowCount()) {
return null;
}
Expand Down
8 changes: 4 additions & 4 deletions src/Repository/ScheduledDataflowRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function findReadyToRun(): iterable
->orderBy('next', 'ASC')
;

$stmt = $qb->executeQuery();
$stmt = $qb->execute();
if (0 === $stmt->rowCount()) {
return [];
}
Expand All @@ -74,7 +74,7 @@ public function findAllOrderedByLabel(): iterable
$qb = $this->createQueryBuilder();
$qb->orderBy('label', 'ASC');

$stmt = $qb->executeQuery();
$stmt = $qb->execute();
if (0 === $stmt->rowCount()) {
return [];
}
Expand All @@ -92,7 +92,7 @@ public function listAllOrderedByLabel(): array
->orderBy('w.label', 'ASC')
->groupBy('w.id');

return $query->executeQuery()->fetchAllAssociative();
return $query->execute()->fetchAllAssociative();
}

public function save(ScheduledDataflow $scheduledDataflow)
Expand Down Expand Up @@ -138,7 +138,7 @@ public function createQueryBuilder($alias = null): QueryBuilder

private function returnFirstOrNull(QueryBuilder $qb): ?ScheduledDataflow
{
$stmt = $qb->executeQuery();
$stmt = $qb->execute();
if (0 === $stmt->rowCount()) {
return null;
}
Expand Down