public function getFeed()
 {
     $this->__load();
     return parent::getFeed();
 }
Пример #2
0
 /**
  * Set article authors
  *
  * @param Article $article
  * @param Newscoop\Entity\Ingest\Feed\Entry $entry
  * @return void
  */
 private function setArticleAuthors(\Article $article, Entry $entry)
 {
     $name = $entry->getFeed()->getTitle();
     $author = new \Author($name);
     if (!$author->exists()) {
         $author->create();
     }
     $article->setAuthor($author);
 }