PHP Class WellCommerce\Bundle\DoctrineBundle\Manager\Manager

Author: Adam Piotrowski ([email protected])
Inheritance: implements WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface
Mostrar archivo Open project: wellcommerce/wellcommerce

Public Methods

Method Description
__construct ( WellCommerce\Bundle\DoctrineBundle\Factory\EntityFactoryInterface $factory = null, WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface $repository = null, WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface $helper, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher ) Manager constructor.
createResource ( WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface $entity, boolean $flush = true )
getDoctrineHelper ( ) : WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface
getEntityManager ( ) : Doctrine\Common\Persistence\ObjectManager
getFactory ( ) : WellCommerce\Bundle\DoctrineBundle\Factory\EntityFactoryInterface
getRepository ( ) : WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface
initResource ( ) : WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface
removeResource ( WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface $entity, boolean $flush = true )
updateResource ( WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface $entity, boolean $flush = true )

Private Methods

Method Description
dispatchEvent ( string $name, WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface $entity )
getEventName ( $class, $name )

Method Details

__construct() public method

Manager constructor.
public __construct ( WellCommerce\Bundle\DoctrineBundle\Factory\EntityFactoryInterface $factory = null, WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface $repository = null, WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface $helper, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher )
$factory WellCommerce\Bundle\DoctrineBundle\Factory\EntityFactoryInterface
$repository WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface
$helper WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

createResource() public method

public createResource ( WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface $entity, boolean $flush = true )
$entity WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface
$flush boolean

getDoctrineHelper() public method

public getDoctrineHelper ( ) : WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface
return WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface

getEntityManager() public method

public getEntityManager ( ) : Doctrine\Common\Persistence\ObjectManager
return Doctrine\Common\Persistence\ObjectManager

getFactory() public method

public getFactory ( ) : WellCommerce\Bundle\DoctrineBundle\Factory\EntityFactoryInterface
return WellCommerce\Bundle\DoctrineBundle\Factory\EntityFactoryInterface

getRepository() public method

public getRepository ( ) : WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface
return WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface

initResource() public method

public initResource ( ) : WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface
return WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface

removeResource() public method

public removeResource ( WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface $entity, boolean $flush = true )
$entity WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface
$flush boolean

updateResource() public method

public updateResource ( WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface $entity, boolean $flush = true )
$entity WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface
$flush boolean