/** * Méthode permettant de modifier une monnaie alternative * @param $alernateCurrency L'adresse à modifier * @return void */ protected function modify(AlternateCurrencyPostalCode $alernateCurrencyPostalCode) { $q = $this->dao->prepare('UPDATE ' . $this->table() . ' SET POSTAL_CODE = :postalCode, ALTERNATE_CURRENCY_ID = :alternateCurrencyId WHERE ID = :id'); $q->bindValue(':postalCode', $alternateCurrencyPostalCode->getPostalCode()); $q->bindValue(':alternateCurrencyId', $alternateCurrencyPostalCode->getAlternateCurrencyId()); $q->bindValue(':id', $alernateCurrencyPostalCode->id(), PDO::PARAM_INT); $q->execute(); }