Commit e6a00ddc authored by okhin's avatar okhin 🚴

Updating the Finder

parent 1b1c1543
......@@ -37,11 +37,11 @@ class CounterpartFinder
SELECT d.id AS id, a.nom as pseudo, d.pdf as pdf
FROM dons d
JOIN adresses a ON a.id = d.adresse_id
WHERE d.id = :size
WHERE d.id = :don_id
EOQ;
$pdf = $this->connection->fetchAssoc($query, [
'size' => $counterpart['taille']
'don_id' => $counterpart['']
]);
if (false !== $pdf) {
$contrepartie['pdf_id'] = $pdf['id'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment