Skip to content

SaveFields

  • Full name: \Zemit\Mvc\Controller\Traits\Query\Fields\SaveFields

Properties

saveFields

protected ?\Phalcon\Support\Collection $saveFields

Methods

initializeSaveFields

Initializes the save fields.

public initializeSaveFields(): void

This method is responsible for initializing the necessary save fields for the model


setSaveFields

Sets the fields for saving data.

public setSaveFields(\Phalcon\Support\Collection|null $saveFields): void

Parameters:

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

getSaveFields

Returns the save fields.

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

This method retrieves the save fields for the model. If save fields have been set, it returns the collection of save fields. If no save fields have been set, it returns null.

Note: The save fields are the fields that are allowed to be saved in the database for the model.

Return Value:

The collection of save fields or null if no save fields have been set.