PHP Interface Happyr\DoctrineSpecification\EntitySpecificationRepositoryInterface

Inheritance: extends Doctrine\Common\Persistence\ObjectRepository, extends Doctrine\Common\Collections\Selectable
Exibir arquivo Open project: happyr/doctrine-specification

Public Methods

Method Description
getQuery ( Happyr\DoctrineSpecification\Filter\Filter | Happyr\DoctrineSpecification\Query\QueryModifier $specification, Happyr\DoctrineSpecification\Result\ResultModifier $modifier ) : Doctrine\ORM\Query Prepare a Query with a Specification.
match ( Happyr\DoctrineSpecification\Filter\Filter | Happyr\DoctrineSpecification\Query\QueryModifier $specification, Happyr\DoctrineSpecification\Result\ResultModifier $modifier ) : mixed[] Get results when you match with a Specification.
matchOneOrNullResult ( Happyr\DoctrineSpecification\Filter\Filter | Happyr\DoctrineSpecification\Query\QueryModifier $specification, Happyr\DoctrineSpecification\Result\ResultModifier $modifier ) : mixed | null Get single result or null when you match with a Specification.
matchSingleResult ( Happyr\DoctrineSpecification\Filter\Filter | Happyr\DoctrineSpecification\Query\QueryModifier $specification, Happyr\DoctrineSpecification\Result\ResultModifier $modifier ) : mixed Get single result when you match with a Specification.

Method Details

getQuery() public method

Prepare a Query with a Specification.
public getQuery ( Happyr\DoctrineSpecification\Filter\Filter | Happyr\DoctrineSpecification\Query\QueryModifier $specification, Happyr\DoctrineSpecification\Result\ResultModifier $modifier ) : Doctrine\ORM\Query
$specification Happyr\DoctrineSpecification\Filter\Filter | Happyr\DoctrineSpecification\Query\QueryModifier
$modifier Happyr\DoctrineSpecification\Result\ResultModifier
return Doctrine\ORM\Query

match() public method

Get results when you match with a Specification.
public match ( Happyr\DoctrineSpecification\Filter\Filter | Happyr\DoctrineSpecification\Query\QueryModifier $specification, Happyr\DoctrineSpecification\Result\ResultModifier $modifier ) : mixed[]
$specification Happyr\DoctrineSpecification\Filter\Filter | Happyr\DoctrineSpecification\Query\QueryModifier
$modifier Happyr\DoctrineSpecification\Result\ResultModifier
return mixed[]

matchOneOrNullResult() public method

Get single result or null when you match with a Specification.
public matchOneOrNullResult ( Happyr\DoctrineSpecification\Filter\Filter | Happyr\DoctrineSpecification\Query\QueryModifier $specification, Happyr\DoctrineSpecification\Result\ResultModifier $modifier ) : mixed | null
$specification Happyr\DoctrineSpecification\Filter\Filter | Happyr\DoctrineSpecification\Query\QueryModifier
$modifier Happyr\DoctrineSpecification\Result\ResultModifier
return mixed | null

matchSingleResult() public method

Get single result when you match with a Specification.
public matchSingleResult ( Happyr\DoctrineSpecification\Filter\Filter | Happyr\DoctrineSpecification\Query\QueryModifier $specification, Happyr\DoctrineSpecification\Result\ResultModifier $modifier ) : mixed
$specification Happyr\DoctrineSpecification\Filter\Filter | Happyr\DoctrineSpecification\Query\QueryModifier
$modifier Happyr\DoctrineSpecification\Result\ResultModifier
return mixed