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

        return $r->findOneBy(['akCategoryID' => $akCategoryID]);
    }
public function getByID($akCategoryID)
    {
        $r = $this->entityManager->getRepository(Category::class);

        return $r->findOneBy(['akCategoryID' => $akCategoryID]);
    }
public function getByID ( $ akCategoryID ) { $ r = $ this -> entityManager -> getRepository ( Category :: class ) ; return $ r -> findOneBy ( [ 'akCategoryID' => $ akCategoryID ] ) ; }
Get a attribute category given its ID.

@param int $akCategoryID

@return Category|null
Get a attribute category given its ID .