j4mie/idiorm — pull request #55 by panczypani (2012-02-26 13:05:07+00:00)
Title: Insert multi rows in one query

Method 2 for insert- mass insert by one query

$data[]=array('col1'=>'1','col2'=>'2');
$data[]=array('col2'=>'4','col1'=>'3');
$data[]=array('col1'=>'5','col2'=>'6');
$row=ORM::for_table('aaa')->create();
$row->save_multi($data);

Result query:
INSERT INTO `aaa` (`one`, `two`) VALUES (?, ?), (?, ?)