예제 #1
0
 public function update(Vehicule $vehicule)
 {
     $query = $this->db->prepare('UPDATE vehicules SET marque = :marque WHERE id = : id ');
     $query->bindValue(': marque', $vehicule->marque(), PDO::PARAM_INT);
     $query->bindValue(': id ', $vehicule->id(), PDO::PARAM_INT);
 }