Пример #1
0
 /**
  * @param Article $article
  */
 protected function storeTweets(Article $article)
 {
     $stmt = $this->pdo->prepare("\n            INSERT INTO tweets (\n                article_id\n            )\n            VALUES (\n                :article_id\n            )\n        ");
     $stmt->bindValue(':article_id', $article->getArticleId(), PDO::PARAM_INT);
     $stmt->execute();
 }