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()

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

Details

array merge()

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

Return Value

array