protected function modify(Carrousel $carrousel) { $q = $this->dao->prepare('UPDATE ' . $this->table() . ' SET ANNOUNCE_ID = :announceId WHERE ID = :id'); $q->bindValue(':announceId', $carrousel->getAnnounceId()); $q->bindValue(':id', $carrousel->id()); $q->execute(); }