* * @method NewsCategory|null find($id, $lockMode = null, $lockVersion = null) * @method NewsCategory|null findOneBy(array $criteria, array $orderBy = null) * @method NewsCategory[] findAll() * @method NewsCategory[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class NewsCategoryRepository extends ServiceEntityRepository implements NewsCategoryRepositoryInterface { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, NewsCategory::class); } public function getAll(): array { return $this->findAll(); } }