Insertable
Less than 1 minute
Insertable
Interface for objects that can be converted to an array for database insertion/update.
interface InsertableImplementations (such as Hazaar\Model\Struct) allow DBI to accept model objects directly wherever an insert or update payload is expected, converting them to a plain array of column/value pairs via toArray().
Methods
toArray
Converts the object to an array of column/value pairs suitable for insertion or update.
public toArray(array|string|null $filter): arrayReturns: array
Parameters
| Parameter | Type | Description |
|---|---|---|
$filter | array | string |
Generated by Hazaar API Doc Generator on Thu, 22 Oct 2026 05:05:30 +0000