protected function add(Carrousel $carrousel) { $q = $this->dao->prepare('INSERT INTO ' . $this->table() . ' SET ANNOUNCE_ID = :announceId'); $q->bindValue(':announceId', $carrousel->getAnnounceId()); $q->execute(); $carrousel->setId($this->dao->lastInsertId()); }