PHP Class PartKeepr\CategoryBundle\Services\CategoryService

Show file Open project: partkeepr/PartKeepr Class Usage Examples

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

ensureRootNodeExists() public method

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

getEntityClass() public method

public getEntityClass ( )

getRootNode() public method

Returns the root node for a tree.
public getRootNode ( ) : AbstractCategory
return PartKeepr\CategoryBundle\Entity\AbstractCategory