Set trait
Framework\Database\Manipulation\Traits\Set
Trait Set.
Defined in libraries/database/src/Manipulation/Traits/Set.php
Methods #
- set()
- Sets the SET clause.
- hasSet()
- Tells if the SET clause was set.
- renderSet()
- Renders the SET clause.
- renderSetCheckingConflicts()
- Renders the SET clause checking conflicts.
set()
public function set(object|array $columns): static
Sets the SET clause.
Parameters
- object|array $columns - Array of columns => values or an object to be cast to array
Returns
static
hasSet()
protected function hasSet(): bool
Tells if the SET clause was set.
Returns
bool
- True if was set, otherwise false
renderSet()
protected function renderSet(): ?string
Renders the SET clause.
Returns
?string
- The SET clause null if it was not set
renderSetCheckingConflicts()
protected function renderSetCheckingConflicts(): ?string
Renders the SET clause checking conflicts.
Returns
?string
- The SET part or null if it was not set