class CriteriaMerger (View source)

Utility class for merging query criteria.

This is mainly used to incorporate filter and ReferenceMany mapping criteria into a query. Each criteria array will be joined with "$and" to avoid cases where criteria might be inadvertently overridden with array_merge().

Methods

array
merge(array ...$criterias)

Combines any number of criteria arrays as clauses of an "$and" query.

Details

array merge(array ...$criterias)

Combines any number of criteria arrays as clauses of an "$and" query.

Parameters

array ...$criterias Any number of query criteria arrays

Return Value

array