PHP Класс PartKeepr\CategoryBundle\Services\CategoryService

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( EntityManager $entityManager, $entityClass )
ensureRootNodeExists ( ) Creates the root node for a tree if it doesn't exist.
getEntityClass ( )
getRootNode ( ) : AbstractCategory Returns the root node for a tree.

Описание методов

__construct() публичный Метод

public __construct ( EntityManager $entityManager, $entityClass )
$entityManager Doctrine\ORM\EntityManager

ensureRootNodeExists() публичный Метод

Creates the root node for a tree if it doesn't exist.

getEntityClass() публичный Метод

public getEntityClass ( )

getRootNode() публичный Метод

Returns the root node for a tree.
public getRootNode ( ) : AbstractCategory
Результат PartKeepr\CategoryBundle\Entity\AbstractCategory