concrete/src/Attribute/Category/CategoryService.php
public function getListByPackage(Package $pkg)
    {
        $r = $this->entityManager->getRepository(Category::class);

        return $r->findByPackage($pkg);
    }
public function getListByPackage(Package $pkg)
    {
        $r = $this->entityManager->getRepository(Category::class);

        return $r->findByPackage($pkg);
    }
public function getListByPackage ( Package $ pkg ) { $ r = $ this -> entityManager -> getRepository ( Category :: class ) ; return $ r -> findByPackage ( $ pkg ) ; }
Get all the available attribute categories created by a package.

@param Package $pkg

@return Category[]
Get all the available attribute categories created by a package .