public function update(Societe $societe) { $query = $this->_db->prepare(' UPDATE t_societe SET raisonSociale=:raisonSociale, dateCreation=:dateCreation WHERE id=:id') or die(print_r($this->_db->errorInfo())); $query->bindValue(':id', $societe->id()); $query->bindValue(':raisonSociale', $societe->raisonSociale()); $query->bindValue(':dateCreation', $societe->dateCreation()); $query->execute(); $query->closeCursor(); }