PHP Interface WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface

Author: Adam Piotrowski ([email protected])
Afficher le fichier Open project: wellcommerce/wellcommerce Interface Usage Examples

Méthodes publiques

Méthode 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 méthode

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

getDoctrineHelper() public méthode

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

getEntityManager() public méthode

Returns the Doctrine manager
public getEntityManager ( ) : Doctrine\Common\Persistence\ObjectManager
Résultat Doctrine\Common\Persistence\ObjectManager

getFactory() public méthode

Returns the factory
public getFactory ( ) : WellCommerce\Bundle\DoctrineBundle\Factory\EntityFactoryInterface
Résultat WellCommerce\Bundle\DoctrineBundle\Factory\EntityFactoryInterface

getRepository() public méthode

Returns the repository
public getRepository ( ) : WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface
Résultat WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface

initResource() public méthode

Initializes new resource object
public initResource ( ) : WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface
Résultat WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface

removeResource() public méthode

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

updateResource() public méthode

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