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 Fri, 04 Sep 2026 23:32:16 +0000