Skip to content

Commit

Permalink
rowCount() has benn moved from Statement to ResultStatement (doctrine…
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Apr 5, 2022
1 parent 465d6dc commit 7b8463f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Model/Table/MonarcObjectTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ public function checkInAnr($anrid, $id)
WHERE anr_id = :anrid
AND object_id = :oid'
);
$stmt->execute([':anrid' => $anrid, ':oid' => $id]);
$count = $stmt->executeStatement([':anrid' => $anrid, ':oid' => $id]);

return $stmt->rowCount() > 0;
return $count > 0;
}

/**
Expand Down

0 comments on commit 7b8463f

Please sign in to comment.