class Helper implements HelperInterface

Query builder helper.

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 20
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