PHP Interface WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface

Author: Adam Piotrowski ([email protected])
Mostra file Open project: wellcommerce/wellcommerce Interface Usage Examples

Public Methods

Method Description
createResource ( WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface $resource, boolean $flush = true ) Persists new resource
getDoctrineHelper ( ) : WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface Returns the helper for Doctrine calls
getEntityManager ( ) : Doctrine\Common\Persistence\ObjectManager Returns the Doctrine manager
getFactory ( ) : WellCommerce\Bundle\DoctrineBundle\Factory\EntityFactoryInterface Returns the factory
getRepository ( ) : WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface Returns the repository
initResource ( ) : WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface Initializes new resource object
removeResource ( WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface $resource, boolean $flush = true ) Removes a resource
updateResource ( WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface $resource, boolean $flush = true ) Updates existing resource

Method Details

createResource() public method

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

getDoctrineHelper() public method

Returns the helper for Doctrine calls
public getDoctrineHelper ( ) : WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface
return WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface

getEntityManager() public method

Returns the Doctrine manager
public getEntityManager ( ) : Doctrine\Common\Persistence\ObjectManager
return Doctrine\Common\Persistence\ObjectManager

getFactory() public method

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

getRepository() public method

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

initResource() public method

Initializes new resource object
public initResource ( ) : WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface
return WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface

removeResource() public method

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

updateResource() public method

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