public function importJournalArticles($oldJournalId, $newJournalId, $issueIds, $sectionIds)
    {
        $articleSql = "SELECT article_id FROM articles WHERE journal_id = :journal_id";
        $articleStatement = $this->dbalConnection->prepare($articleSql);
        $articleStatement->bindValue('journal_id', $oldJournalId);
        $articleStatement->execute();
        $articles = $articleStatement->fetchAll();

        $this->importArticles($articles, $newJournalId, $sectionIds, $issueIds);
    }
public function importJournalArticles($oldJournalId, $newJournalId, $issueIds, $sectionIds)
    {
        $articleSql = "SELECT article_id FROM articles WHERE journal_id = :journal_id";
        $articleStatement = $this->dbalConnection->prepare($articleSql);
        $articleStatement->bindValue('journal_id', $oldJournalId);
        $articleStatement->execute();
        $articles = $articleStatement->fetchAll();

        $this->importArticles($articles, $newJournalId, $sectionIds, $issueIds);
    }
public function importJournalArticles ( $ oldJournalId , $ newJournalId , $ issueIds , $ sectionIds ) { $ articleSql = "SELECT article_id FROM articles WHERE journal_id = :journal_id" ; $ articleStatement = $ this -> dbalConnection -> prepare ( $ articleSql ) ; $ articleStatement -> bindValue ( 'journal_id' , $ oldJournalId ) ; $ articleStatement -> execute ( ) ; $ articles = $ articleStatement -> fetchAll ( ) ; $ this -> importArticles ( $ articles , $ newJournalId , $ sectionIds , $ issueIds ) ; }
Imports the articles of given Journal.
@param int $oldJournalId Old journal's ID
@param int $newJournalId New journal's ID
@param array $issueIds   Issue IDs of journal
@param array $sectionIds Section IDs of journal
@throws Exception
@throws \Doctrine\DBAL\ConnectionException
@throws \Doctrine\DBAL\DBALException
Imports the articles of given Journal .