public static $columnsInsert =
[
'id',
'customer_id',
'summary',
'description',
'color',
'favourite',
'update_at',
'create_at',
'personEmail'
];
$sql = $db->queryBuilder->batchInsert(self::$table, self::$columnsInsert, $data);
/*
$data = [
0 => ['id' => ..., 'customer_id' => ...],
1 => ['id' => ..., 'customer_id' => ...]
...
]
*/
$sql = $db->queryBuilder->batchInsert(self::$table, arrow_keys($data[0]), $data);