Skip to content

Distinct


  • Full name: \PhalconKit\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 - Exception


setDistinct

Sets the distinct collection.

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

Parameters:

Parameter Type Description
$distinct \Phalcon\Support\Collection|null The distinct collection to set.

getDistinct

Gets the distinct collection.

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

Return Value:

The distinct collection, if set; otherwise, null.