Skip to content

Distinct

  • Full name: \Zemit\Mvc\Controller\Traits\Query\Distinct

Properties

distinct

protected ?\Phalcon\Support\Collection $distinct

Methods

initializeDistinct

Initialize the distinct parameter for the query.

public initializeDistinct(): void

Throws:

If an error occurs during filtering


setDistinct

Sets the distinct collection.

public setDistinct(\Phalcon\Support\Collection|null $distinct): void

Parameters:

Parameter Type Description
$distinct **\Phalcon\Support\Collection null**

getDistinct

Gets the distinct collection.

public getDistinct(): \Phalcon\Support\Collection|null

Return Value:

The distinct collection, if set; otherwise, null.