src/mako/database/query/Query.php
public function insertAndGetId(array $values, string $primaryKey = 'id')
	{
		return $this->helper->insertAndGetId($this, $values, $primaryKey);
	}
public function insertAndGetId(array $values, string $primaryKey = 'id')
	{
		return $this->helper->insertAndGetId($this, $values, $primaryKey);
	}
public function insertAndGetId ( array $ values , string $ primaryKey = 'id' ) { return $ this -> helper -> insertAndGetId ( $ this , $ values , $ primaryKey ) ; }
Inserts data into the chosen table and returns the auto increment id.

@param  array    $values     Associative array of column values
@param  string   $primaryKey Primary key
@return int|bool
Inserts data into the chosen table and returns the auto increment id .