示例#1
0
 /**
  * @param array $tags
  * @param Page $page
  */
 private function addTags2Page(array $tags, Page $page)
 {
     foreach ($tags as $tagId) {
         /** @var Tag $tag */
         $tag = $this->em->getReference(Tag::class, $tagId);
         $page->addTag($tag);
     }
 }