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(null $filter): voidParameters
| Parameter | Type | Description |
|---|---|---|
$filter | null |
Generated by Hazaar API Doc Generator on Wed, 22 Jul 2026 14:10:07 +0000