Commit e6a00ddc authored by Okhin's avatar Okhin

Updating the Finder

parent 1b1c1543
...@@ -37,11 +37,11 @@ class CounterpartFinder ...@@ -37,11 +37,11 @@ class CounterpartFinder
SELECT d.id AS id, a.nom as pseudo, d.pdf as pdf SELECT d.id AS id, a.nom as pseudo, d.pdf as pdf
FROM dons d FROM dons d
JOIN adresses a ON a.id = d.adresse_id JOIN adresses a ON a.id = d.adresse_id
WHERE d.id = :size WHERE d.id = :don_id
EOQ; EOQ;
$pdf = $this->connection->fetchAssoc($query, [ $pdf = $this->connection->fetchAssoc($query, [
'size' => $counterpart['taille'] 'don_id' => $counterpart['']
]); ]);
if (false !== $pdf) { if (false !== $pdf) {
$contrepartie['pdf_id'] = $pdf['id']; $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