PHP Class Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository

Author: Paweł Jędrzejewski ([email protected])
Inheritance: extends Doctrine\ORM\EntityRepository, implements Sylius\Component\Resource\Repository\RepositoryInterface
显示文件 Open project: sylius/sylius Class Usage Examples

Public Methods

Method Description
add ( Sylius\Component\Resource\Model\ResourceInterface $resource )
createPaginator ( array $criteria = [], array $sorting = [] )
remove ( Sylius\Component\Resource\Model\ResourceInterface $resource )

Protected Methods

Method Description
applyCriteria ( Doctrine\ORM\QueryBuilder $queryBuilder, array $criteria = [] )
applySorting ( Doctrine\ORM\QueryBuilder $queryBuilder, array $sorting = [] )
getArrayPaginator ( array $objects ) : Pagerfanta\Pagerfanta
getPaginator ( Doctrine\ORM\QueryBuilder $queryBuilder ) : Pagerfanta\Pagerfanta
getPropertyName ( string $name ) : string

Method Details

add() public method

public add ( Sylius\Component\Resource\Model\ResourceInterface $resource )
$resource Sylius\Component\Resource\Model\ResourceInterface

applyCriteria() protected method

protected applyCriteria ( Doctrine\ORM\QueryBuilder $queryBuilder, array $criteria = [] )
$queryBuilder Doctrine\ORM\QueryBuilder
$criteria array

applySorting() protected method

protected applySorting ( Doctrine\ORM\QueryBuilder $queryBuilder, array $sorting = [] )
$queryBuilder Doctrine\ORM\QueryBuilder
$sorting array

createPaginator() public method

public createPaginator ( array $criteria = [], array $sorting = [] )
$criteria array
$sorting array

getArrayPaginator() protected method

protected getArrayPaginator ( array $objects ) : Pagerfanta\Pagerfanta
$objects array
return Pagerfanta\Pagerfanta

getPaginator() protected method

protected getPaginator ( Doctrine\ORM\QueryBuilder $queryBuilder ) : Pagerfanta\Pagerfanta
$queryBuilder Doctrine\ORM\QueryBuilder
return Pagerfanta\Pagerfanta

getPropertyName() protected method

protected getPropertyName ( string $name ) : string
$name string
return string

remove() public method

public remove ( Sylius\Component\Resource\Model\ResourceInterface $resource )
$resource Sylius\Component\Resource\Model\ResourceInterface