parser is workiiiiing :DDD! All data get in DB

feature/article
Roxane ROSSETTO 1 year ago
parent 12913ba1e7
commit 0dd3beac75

@ -35,7 +35,7 @@ class ArticleGateway
*/
public function addArticle(Article $article){
try {
$query = 'INSERT INTO Article VALUES (:id,:title,datePub,:description,:guid,:link,:mediaContent,:provenance);';
$query = 'INSERT INTO Article VALUES (:id,:title,:datePub,:description,:guid,:link,:mediaContent,:provenance);';
$this->con->executeQuery($query, array(':id' => array($article->getId(), PDO::PARAM_INT),
':title' => array($article->getTitle(), PDO::PARAM_STR),
':datePub' => array($article->getDate(), PDO::PARAM_STR),

@ -24,7 +24,7 @@ class Article
* @param int $provenance
*/
public function __construct(
int $id,
?int $id,
string $title,
string $date,
string $description,

Loading…
Cancel
Save