Having
- Full name:
\PhalconKit\Mvc\Controller\Traits\Query\Having
Properties
having
protected ?\Phalcon\Support\Collection $having
Methods
initializeHaving
Initializes the having property to its default state.
public initializeHaving(): void
getHaving
Retrieves the current having collection.
public getHaving(): \Phalcon\Support\Collection|null
Return Value:
The collection of having, or null if none is set.
setHaving
Sets the having property to the provided collection.
public setHaving(array|\Phalcon\Support\Collection|null $having): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$having | array|\Phalcon\Support\Collection|null | The collection to set as the having property, or null to clear it. |
mergeHaving
Merges the provided having collection with the current having property.
public mergeHaving(array|\Phalcon\Support\Collection $having): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$having | array|\Phalcon\Support\Collection | The collection of having to merge with the current property. |