|
|
|
@ -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),
|
|
|
|
|