/** * {@inheritdoc} */ public function findRoot() { $root = new Category(); $root->setChildren($this->findRoots()); return $root; }
/** * @return Category */ protected function getCategory() { $category = new Category(); $category->setPosts(new ArrayCollection([$this->createPost(Post::PUBLISHED), $this->createPost(Post::DRAFT), $this->createPost(Post::PUBLISHED)])); return $category; }