interface HelperInterface

Query builder helper interface.

Methods

false|int
insertAndGetId(Query $query, array $values, string|null $primaryKey = null)

Inserts data into the chosen table and returns the auto increment id.

Details

at line 25
false|int insertAndGetId(Query $query, array $values, string|null $primaryKey = null)

Inserts data into the chosen table and returns the auto increment id.

Parameters

Query $query Query builder instance
array $values Associative array of column values
string|null $primaryKey Primary key name

Return Value

false|int