Classes/Domain/Repository/MetaRepository.php
public function findAssociationCategoryByID($id)
    {
        $categories = $this->findAssociationCategories()->getCategories();

        $categories->rewind();

        while ($categories->valid()) {
            $category = $categories->current();
            if ($category->getID() == $id) {
                return $category;
            }

            $categories->next();
        }
    }
public function findAssociationCategoryByID($id)
    {
        $categories = $this->findAssociationCategories()->getCategories();

        $categories->rewind();

        while ($categories->valid()) {
            $category = $categories->current();
            if ($category->getID() == $id) {
                return $category;
            }

            $categories->next();
        }
    }
public function findAssociationCategoryByID ( $ id ) { $ categories = $ this -> findAssociationCategories ( ) -> getCategories ( ) ; $ categories -> rewind ( ) ; while ( $ categories -> valid ( ) ) { $ category = $ categories -> current ( ) ; if ( $ category -> getID ( ) == $ id ) { return $ category ; } $ categories -> next ( ) ; } }
return a association category

@param string category id

@return Category
return a association category