function chargerVehicule(Membre $membre) { $dbh = $this->_db; $sql = "SELECT V.* FROM Possede AS P, Vehicule AS V WHERE noMem = :noMem AND P.noVeh = V.noVeh;"; $sth = $dbh->prepare($sql); $sth->bindParam(":noMem", $membre->noMem(), PDO::PARAM_STR); $bool = $sth->execute(); $listeVeh = array(); if ($result = $sth->fetch(PDO::FETCH_ASSOC)) { $listeVeh[] = new Vehicule($result); } $membre->setListeVehicules($listeVeh); }