| Methods |
public
static
|
create(): static
Creates an instance of the class.
Creates an instance of the class.
|
#
|
public
static
|
expr(): ExpressionBuilder
Returns the expression builder.
Returns the expression builder.
|
#
|
public
|
__construct(
Expression|null $expression = null,
array<string, string>|null $orderings = null,
int|null $firstResult = null,
int|null $maxResults = null,
)
Construct a new Criteria.
Construct a new Criteria.
|
#
|
public
|
where(Expression $expression): $this
Sets the where expression to evaluate when this Criteria is searched for.
Sets the where expression to evaluate when this Criteria is searched for.
|
#
|
public
|
andWhere(Expression $expression): $this
Appends the where expression to evaluate when this Criteria is searched for
using an AND with previous expression.
Appends the where expression to evaluate when this Criteria is searched for
using an AND with previous expression.
|
#
|
public
|
orWhere(Expression $expression): $this
Appends the where expression to evaluate when this Criteria is searched for
using an OR with previous expression.
Appends the where expression to evaluate when this Criteria is searched for
using an OR with previous expression.
|
#
|
public
|
getWhereExpression(): Expression|null
Gets the expression attached to this Criteria.
Gets the expression attached to this Criteria.
|
#
|
public
|
getOrderings(): array<string, string>
Gets the current orderings of this Criteria.
Gets the current orderings of this Criteria.
|
#
|
public
|
orderBy(array<string, string> $orderings): $this
Sets the ordering of the result of this Criteria.
Sets the ordering of the result of this Criteria.
Keys are field and values are the order, being either ASC or DESC.
|
#
|
public
|
getFirstResult(): int|null
Gets the current first result option of this Criteria.
Gets the current first result option of this Criteria.
|
#
|
public
|
setFirstResult(int|null $firstResult): $this
Set the number of first result that this Criteria should return.
Set the number of first result that this Criteria should return.
Parameters
| $firstResult |
The value to set.
|
|
#
|
public
|
getMaxResults(): int|null
Gets maxResults.
|
#
|
public
|
setMaxResults(int|null $maxResults): $this
Sets maxResults.
Parameters
| $maxResults |
The value to set.
|
|
#
|